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

Commit

Permalink
fix: this nil check is never true
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Apr 6, 2022
1 parent e1d841a commit 07d0260
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crypto/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ func (ePub *ECDSAPublicKey) Verify(data, sigBytes []byte) (bool, error) {
if _, err := asn1.Unmarshal(sigBytes, sig); err != nil {
return false, err
}
if sig == nil {
return false, ErrNilSig
}

hash := sha256.Sum256(data)

Expand Down

0 comments on commit 07d0260

Please sign in to comment.