mirror of
https://github.com/distribution/distribution.git
synced 2025-09-09 10:49:19 +00:00
feat(linter): enable errcheck linter in golangci-lint
Also, bump the linter version to the latest available version. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
@@ -22,7 +22,10 @@ func FuzzToken1(f *testing.F) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
token.Verify(verifyOps)
|
||||
_, err = token.Verify(verifyOps)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _ = token.VerifySigningKey(verifyOps)
|
||||
})
|
||||
}
|
||||
@@ -40,7 +43,10 @@ func FuzzToken2(f *testing.F) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
token.Verify(verifyOps)
|
||||
_, err = token.Verify(verifyOps)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _ = token.VerifySigningKey(verifyOps)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user