Skip to content

Commit

Permalink
Merge pull request #376 from rabbitmq/error-check-admin-secret
Browse files Browse the repository at this point in the history
Check returned error by WriteTo
  • Loading branch information
Zerpet committed Oct 1, 2020
2 parents 03cab12 + 45980e3 commit ad30e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resource/admin_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func generateDefaultUserConf(username, password string) ([]byte, error) {
}

var userConfBuffer bytes.Buffer
if cfg.WriteTo(&userConfBuffer); err != nil {
if _, err := cfg.WriteTo(&userConfBuffer); err != nil {
return nil, err
}

Expand Down

0 comments on commit ad30e19

Please sign in to comment.