Add golangci-lint config

This commit is contained in:
2026-02-12 02:54:35 +03:00
parent f22111aa43
commit 9e59fa18e4
14 changed files with 112 additions and 50 deletions

View File

@@ -2,6 +2,7 @@ package filesystem
import (
"context"
"errors"
"io"
"os"
"sync"
@@ -33,7 +34,7 @@ func (fi *File) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResu
}
n, err := fi.file.Read(dest)
if err != nil && err != io.EOF {
if err != nil && !errors.Is(err, io.EOF) {
return nil, syscall.EIO
}