chore: fix golangci-lint errors

This commit is contained in:
Oleg Lobanov committed 2024-04-01 18:24:06 +02:00
1 parent d194d71293
commit ae0af1f996
54 files changed
+452 -475

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ func Search(fs afero.Fs, scope, query string, checker rules.Checker, found func(
scope = filepath.ToSlash(filepath.Clean(scope))
scope = path.Join("/", scope)
return afero.Walk(fs, scope, func(fPath string, f os.FileInfo, err error) error {
return afero.Walk(fs, scope, func(fPath string, f os.FileInfo, _ error) error {
fPath = filepath.ToSlash(filepath.Clean(fPath))
fPath = path.Join("/", fPath)
relativePath := strings.TrimPrefix(fPath, scope)