From f8e4cd540b87de3e308ec18a2b040b284a741522 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 17 Jun 2024 19:51:37 -0700 Subject: Clean up various linter warnings --- hotline/files.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hotline/files.go') 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) { -- cgit