Chore: Fix issues found by staticcheck (#28802)

* Fix linting issues

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-11-05 11:29:39 +01:00
committed by GitHub
parent dff84f6a31
commit 574553ec7b
24 changed files with 67 additions and 64 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func DecodeBasicAuthHeader(header string) (string, string, error) {
userAndPass := strings.SplitN(string(decoded), ":", 2)
if len(userAndPass) != 2 {
return "", "", errors.New("Invalid basic auth header")
return "", "", errors.New("invalid basic auth header")
}
return userAndPass[0], userAndPass[1], nil