fix: all issues by golangci-lint

This commit is contained in:
verse91
2026-05-09 23:49:33 +07:00
parent e587f02798
commit c76541258a
18 changed files with 118 additions and 79 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func init() {
return nil
}
}
defer file.Close()
defer func() { _ = file.Close() }()
var suggestions []core.Suggestion
seen := make(map[string]bool)
+1 -1
View File
@@ -19,7 +19,7 @@ func init() {
// No Makefile, don't pretend we have one
return nil
}
defer file.Close()
defer func() { _ = file.Close() }()
var suggestions []core.Suggestion
seen := make(map[string]bool)