Skip to content

Commit

Permalink
fix nil err check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Jun 20, 2024
1 parent 5d8cbd7 commit 7ecc98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/mw_auth_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (k *AuthKey) ProcessRequest(_ http.ResponseWriter, r *http.Request, _ inter
keyID, err := storage.TokenID(key)
if err == nil {
err, statusCode := k.validateSignature(r, keyID)
if err == nil {
if err != nil {
return err, statusCode
}
}
Expand Down

0 comments on commit 7ecc98d

Please sign in to comment.