chore(fs): linter complaints

This commit is contained in:
Jakob Borg
2025-06-06 13:45:44 +02:00
parent 700bb75016
commit 10d20c4800
15 changed files with 44 additions and 38 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
package fs
import (
"errors"
"io"
)
@@ -28,7 +29,7 @@ func copyRangeStandard(src, dst File, srcOffset, dstOffset, size int64) error {
}
n, err := src.ReadAt(buf, srcOffset)
if err != nil {
if err == io.EOF {
if errors.Is(err, io.EOF) {
return io.ErrUnexpectedEOF
}
return err