Skip to content

Commit

Permalink
linter: Fix errcheck - not checked return value
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Sep 22, 2023
1 parent 85708db commit b652067
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/object_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ func TestObjectSearch(t *testing.T) {
}

// nil panic
require.Panics(t, func() { resp.Read(nil) })
require.Panics(t, func() {
_, _ = resp.Read(nil)
})

// no data
resp.stream = newSearchStream(p, io.EOF, []oid.ID{})
Expand Down

0 comments on commit b652067

Please sign in to comment.