From b81e4e407c6b8fa2a20404b27684f031855db523 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Sun, 1 Mar 2026 00:27:41 +0900 Subject: [PATCH] style: fix last 3 lint errors (gci, golines, nolintlint) Co-Authored-By: Claude Opus 4.6 --- cmd/picoclaw/internal/gateway/helpers.go | 3 ++- pkg/agent/loop.go | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/picoclaw/internal/gateway/helpers.go b/cmd/picoclaw/internal/gateway/helpers.go index f793297c3..f332cdbf4 100644 --- a/cmd/picoclaw/internal/gateway/helpers.go +++ b/cmd/picoclaw/internal/gateway/helpers.go @@ -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}) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index 09c6604b5..9f9baced4 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -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 {