Skip to content

Commit 6bb7595

Browse files
fix(lint): simplify boolean return in hook_stop.go
Staticcheck S1008: use direct return instead of if/else pattern
1 parent f1d4719 commit 6bb7595

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

internal/app/hook_stop.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ func shouldSkipSession(meta *claude.SessionMeta, activePath string) bool {
7979

8080
// Pure research: zero Edit/Write calls
8181
editWrites := meta.ToolCounts["Edit"] + meta.ToolCounts["Write"]
82-
if editWrites == 0 {
83-
return true
84-
}
85-
86-
return false
82+
return editWrites == 0
8783
}
8884

8985
// isSignificant returns true if the session meets any significance criteria.

0 commit comments

Comments
 (0)