Skip to content

Commit

Permalink
linter: s3 test: fix ineffective initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
brmzkw committed Feb 4, 2025
1 parent 1e6804f commit 1ce51e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/backends/s3/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestS3Backend(t *testing.T) {
}
require.Equal(t, expected, packfiles)

rd, err = repo.GetPackfileBlob(checksum4, 0, 4)
rd, _ = repo.GetPackfileBlob(checksum4, 0, 4)
buf = new(bytes.Buffer)
_, err = io.Copy(buf, rd)
require.NoError(t, err)
Expand All @@ -100,7 +100,7 @@ func TestS3Backend(t *testing.T) {
expected = []objects.Checksum{{0x60, 0x70, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
require.Equal(t, expected, packfiles)

rd, err = repo.GetPackfile(checksum4)
rd, _ = repo.GetPackfile(checksum4)
buf = new(bytes.Buffer)
_, err = io.Copy(buf, rd)
require.NoError(t, err)
Expand Down

0 comments on commit 1ce51e6

Please sign in to comment.