Skip to content

Commit

Permalink
Fix linter complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
pontus committed Jan 19, 2024
1 parent 12abe57 commit a6128d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions streaming/streaming_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func readerToReader(seekable bool, source io.Reader) io.Reader {
if seekable {
return source
}

return io.MultiReader(source)
}

Expand Down Expand Up @@ -1012,6 +1013,7 @@ func TestSeek(t *testing.T) {
}

r, err = reader.Seek(10, 0)
// nolint:nestif
if !seekable {
// Not going backwards is fine when not seekable, check for error

Expand Down

0 comments on commit a6128d8

Please sign in to comment.