Skip to content

Commit fc86f52

Browse files
authored
Refactor by removing unnecessary []byte conversion to string (#330)
1 parent 8b7470d commit fc86f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

none.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (m *signingMethodNone) Verify(signingString string, sig []byte, key interfa
3232
return NoneSignatureTypeDisallowedError
3333
}
3434
// If signing method is none, signature must be an empty string
35-
if string(sig) != "" {
35+
if len(sig) != 0 {
3636
return newError("'none' signing method with non-empty signature", ErrTokenUnverifiable)
3737
}
3838

0 commit comments

Comments
 (0)