Skip to content

Commit 560f9b5

Browse files
timvwclaude
andcommitted
fix: handle error return values to pass linter
Fix errcheck linter warnings: - Handle cmd.Help() error in rootCmd - Handle gitCmd.Run() error in listCmd Both errors are intentionally ignored as they don't affect functionality in these contexts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f2ebbd4 commit 560f9b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var rootCmd = &cobra.Command{
3636
Worktrees are organized at: ` + worktreeRoot + `/<repo>/<branch>
3737
Set WORKTREE_ROOT to customize the location.`,
3838
Run: func(cmd *cobra.Command, args []string) {
39-
cmd.Help()
39+
_ = cmd.Help()
4040
},
4141
}
4242

@@ -274,7 +274,7 @@ var listCmd = &cobra.Command{
274274
gitCmd := exec.Command("git", "worktree", "list")
275275
gitCmd.Stdout = os.Stdout
276276
gitCmd.Stderr = os.Stderr
277-
gitCmd.Run()
277+
_ = gitCmd.Run()
278278
},
279279
}
280280

0 commit comments

Comments
 (0)