mirror of
https://github.com/distribution/distribution.git
synced 2025-09-11 03:39:41 +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:
@@ -42,7 +42,9 @@ func TestSimpleRead(t *testing.T) {
|
||||
}
|
||||
|
||||
verifier := dgst.Verifier()
|
||||
io.Copy(verifier, fr)
|
||||
if _, err := io.Copy(verifier, fr); err != nil {
|
||||
t.Fatalf("failed writing verification data: %v", err)
|
||||
}
|
||||
|
||||
if !verifier.Verified() {
|
||||
t.Fatalf("unable to verify read data")
|
||||
|
Reference in New Issue
Block a user