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
@@ -68,7 +68,7 @@ func SearchHistory(query string) ([]HistResult, error) {
if err != nil {
return nil, err
}
defer file.Close()
defer func() { _ = file.Close() }()
var allCmds []string
scanner := bufio.NewScanner(file)