Skip to content

Commit 13c2bd7

Browse files
bbornclaude
andcommitted
Fix lint issues in spotlight mode
- Remove ineffectual assignment in test (use _ = output) - Remove unnecessary nil check before len() in status function Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f3dcd0f commit 13c2bd7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

internal/mcp/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ func (s *Server) spotlightStatus(worktreePath, mainRepoDir string) (string, erro
10141014
msg := "🔦 Spotlight mode: ACTIVE\n\n"
10151015
msg += fmt.Sprintf("Worktree: %s\n", worktreePath)
10161016
msg += fmt.Sprintf("Main repo: %s\n", mainRepoDir)
1017-
if stateData != nil && len(stateData) > 0 {
1017+
if len(stateData) > 0 {
10181018
for _, line := range strings.Split(string(stateData), "\n") {
10191019
if strings.HasPrefix(line, "started=") {
10201020
msg += fmt.Sprintf("Started: %s\n", strings.TrimPrefix(line, "started="))

internal/mcp/server_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ func TestSpotlightSync(t *testing.T) {
12201220

12211221
server, output := testServer(database, task.ID, string(reqBytes))
12221222
server.Run()
1223+
_ = output // first response not needed
12231224

12241225
// Now modify the worktree file
12251226
os.WriteFile(filepath.Join(worktreeDir, "file.txt"), []byte("modified again"), 0644)

0 commit comments

Comments
 (0)