Skip to content
Snippets Groups Projects
Unverified Commit fc86f522 authored by Oleksandr Redko's avatar Oleksandr Redko Committed by GitHub
Browse files

Refactor by removing unnecessary []byte conversion to string (#330)

parent 8b7470d5
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ func (m *signingMethodNone) Verify(signingString string, sig []byte, key interfa
return NoneSignatureTypeDisallowedError
}
// If signing method is none, signature must be an empty string
if string(sig) != "" {
if len(sig) != 0 {
return newError("'none' signing method with non-empty signature", ErrTokenUnverifiable)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment