style: fix last 3 lint errors (gci, golines, nolintlint)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d8f00d4148
commit
1a2c001e76
2 changed files with 5 additions and 3 deletions
|
|
@ -467,7 +467,8 @@ func (p *agentLoopDataProvider) GetGitRepos() []miniapp.GitRepoSummary {
|
|||
seen[repoDir] = true
|
||||
name := filepath.Base(repoDir)
|
||||
branch := ""
|
||||
if out, err := exec.Command("git", "-C", repoDir, "rev-parse", "--abbrev-ref", "HEAD").Output(); err == nil {
|
||||
out, err := exec.Command("git", "-C", repoDir, "rev-parse", "--abbrev-ref", "HEAD").Output()
|
||||
if err == nil {
|
||||
branch = strings.TrimSpace(string(out))
|
||||
}
|
||||
repos = append(repos, miniapp.GitRepoSummary{Name: name, Branch: branch})
|
||||
|
|
|
|||
|
|
@ -645,8 +645,9 @@ func (al *AgentLoop) processMessage(ctx context.Context, msg bus.InboundMessage)
|
|||
lower := strings.ToLower(content)
|
||||
|
||||
// Check for stop keywords
|
||||
//nolint:gosmopolitan // intentional CJK stop words
|
||||
stopKeywords := []string{"stop", "cancel", "abort", "停止", "中止", "やめて"}
|
||||
stopKeywords := []string{ //nolint:gosmopolitan // intentional CJK stop words
|
||||
"stop", "cancel", "abort", "停止", "中止", "やめて",
|
||||
}
|
||||
isStop := false
|
||||
for _, kw := range stopKeywords {
|
||||
if lower == kw {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue