Skip to content

Commit

Permalink
use io.SeekStart on Seek method
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Nov 2, 2023
1 parent 692bdb6 commit dc4255f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func isFileCompressible(f fs.File, minCompressRatio float64) bool {
if !ok {
return false
}
seeker.Seek(0, 0) //nolint:errcheck
seeker.Seek(0, io.SeekStart) //nolint:errcheck
if err != nil {
return false
}
Expand Down

0 comments on commit dc4255f

Please sign in to comment.