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
+2 -1
View File
@@ -1,6 +1,7 @@
package dev
import (
"context"
"os/exec"
"strings"
@@ -50,7 +51,7 @@ func GitPushPullGenerator(tokens []string, prefix string, partial string) []core
func getGitResults(prefix string, args ...string) []core.Suggestion {
cwd := core.GetCWD()
cmd := exec.Command("git", args...)
cmd := exec.CommandContext(context.Background(), "git", args...)
cmd.Dir = cwd
out, err := cmd.Output()
if err != nil {