Skip to content
Permalink
Browse files

Addresses golangci gofmt issues.

Signed-off-by: Daneyon Hansen <danehans@cisco.com>
  • Loading branch information...
Daneyon Hansen
Daneyon Hansen committed Jul 13, 2018
1 parent 630a8ca commit 4024f94b25ed5bc5dc025f17ed8e4f5c47403d67
Showing with 3 additions and 4 deletions.
  1. +3 −4 config/config_env.go
@@ -194,12 +194,11 @@ func reporterConfigFromEnv() (*ReporterConfig, error) {

user := os.Getenv(envUser)
pswd := os.Getenv(envPassword)
if user != "" && pswd == "" || user == "" && pswd != "" {
if user != "" && pswd == "" || user == "" && pswd != "" {
return nil, errors.Errorf("you must set %s and %s env vars together", envUser, envPassword)
} else {
rc.User = user
rc.Password = pswd
}
rc.User = user
rc.Password = pswd

return rc, nil
}

0 comments on commit 4024f94

Please sign in to comment.
You can’t perform that action at this time.