diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-17 19:51:37 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-06-17 19:51:37 -0700 |
| commit | f8e4cd540b87de3e308ec18a2b040b284a741522 (patch) | |
| tree | 6d8b1ad0bd04cc19ecaf276e271caaef4d0866f4 /hotline/files.go | |
| parent | 45ca5d60383cbe270624c713b916da29af7ba88f (diff) | |
Clean up various linter warnings
Diffstat (limited to 'hotline/files.go')
| -rw-r--r-- | hotline/files.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hotline/files.go b/hotline/files.go index 901b98c..6753cce 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -40,8 +40,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro return fields, fmt.Errorf("error reading path: %s: %w", path, err) } - for i, _ := range files { - file := files[i] + for _, file := range files { var fnwi FileNameWithInfo if ignoreFile(file.Name(), ignoreList) { |