Skip to content

Commit 69dbb15

Browse files
committed
fix lint error
1 parent 097f105 commit 69dbb15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli/internal/tui/tui.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ func findFilesInRepo(dir, searchRoot string, includeProjectConfig bool, results
100100

101101
return filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
102102
if err != nil {
103-
return nil
103+
return nil //nolint:nilerr // skip inaccessible files, continue walking
104104
}
105105

106106
// Get path relative to repo root for gitignore matching
107107
relToRepo, err := filepath.Rel(repoRoot, path)
108108
if err != nil {
109-
return nil
109+
return nil //nolint:nilerr // skip files with path errors
110110
}
111111

112112
pathComponents := strings.Split(filepath.ToSlash(relToRepo), "/")
@@ -141,7 +141,7 @@ func findFilesInRepo(dir, searchRoot string, includeProjectConfig bool, results
141141
// Get path relative to search root for display
142142
relPath, err := filepath.Rel(searchRoot, path)
143143
if err != nil {
144-
return nil
144+
return nil //nolint:nilerr // skip files with path errors
145145
}
146146

147147
// Match .yapi.yml files

0 commit comments

Comments
 (0)