Skip to content

Commit

Permalink
Fix lint complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Mar 28, 2024
1 parent c99d6d7 commit 6be7b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion note/note_rfc6962.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (v *rfc6962Verifer) Verify(msg, sig []byte) bool {
return v.v(msg, v.name, sig)
}

func verifyRFC6962(key crypto.PublicKey) func(msg []byte, origin string, sig []byte) bool {
func verifyRFC6962(key crypto.PublicKey) func([]byte, string, []byte) bool {
return func(msg []byte, origin string, sig []byte) bool {

Check failure on line 154 in note/note_rfc6962.go

View workflow job for this annotation

GitHub Actions / lint

SA4009: argument origin is overwritten before first use (staticcheck)
if len(sig) < timestampSize {
return false

Check warning on line 156 in note/note_rfc6962.go

View check run for this annotation

Codecov / codecov/patch

note/note_rfc6962.go#L156

Added line #L156 was not covered by tests
Expand Down

0 comments on commit 6be7b6c

Please sign in to comment.