Skip to content

Commit ba56d58

Browse files
committed
Fix broken code
1 parent 34faa80 commit ba56d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var ErrNoAuthHeaderIncluded = errors.New("no authorization header included")
1212
func GetAPIKey(headers http.Header) (string, error) {
1313
authHeader := headers.Get("Authorization")
1414
if authHeader == "" {
15-
return "Ope, there was an error", ErrNoAuthHeaderIncluded
15+
return "", ErrNoAuthHeaderIncluded
1616
}
1717
splitAuth := strings.Split(authHeader, " ")
1818
if len(splitAuth) < 2 || splitAuth[0] != "ApiKey" {

0 commit comments

Comments
 (0)