Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 07d0260

Browse files
authored
fix: this nil check is never true
1 parent e1d841a commit 07d0260

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crypto/ecdsa.go

-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ func (ePub *ECDSAPublicKey) Verify(data, sigBytes []byte) (bool, error) {
162162
if _, err := asn1.Unmarshal(sigBytes, sig); err != nil {
163163
return false, err
164164
}
165-
if sig == nil {
166-
return false, ErrNilSig
167-
}
168165

169166
hash := sha256.Sum256(data)
170167

0 commit comments

Comments
 (0)