Skip to content

Commit

Permalink
use errors.Is for extractor errors (golang-jwt#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantds authored and oxisto committed Feb 21, 2023
1 parent efef8e3 commit 66ff57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request/extractor.go
Expand Up @@ -58,7 +58,7 @@ func (e MultiExtractor) ExtractToken(req *http.Request) (string, error) {
for _, extractor := range e {
if tok, err := extractor.ExtractToken(req); tok != "" {
return tok, nil
} else if err != ErrNoTokenInRequest {
} else if !errors.Is(err, ErrNoTokenInRequest) {
return "", err
}
}
Expand Down

0 comments on commit 66ff57a

Please sign in to comment.