feat: Workspace filesystem cleanup #391
Merged
GitHub Actions / warden: code-simplifier
completed
May 4, 2026 in 14m 15s
1 issue
code-simplifier: Found 1 issue (1 low)
Low
Nested ternary in shouldRecoverLockDir reduces clarity - `src/utils/fs-lock.ts:76-80`
The early-return branch uses a ternary that wraps an awaited expression and returns one of two object shapes. Per the skill's guidance to avoid compact ternaries in favor of explicit if/else, an if/else here would be clearer and easier to extend. User-visible impact: harder-to-read control flow for a critical lock-recovery decision.
Also found at:
src/utils/runtime-instance.ts:51-54src/daemon.ts:152-171
Duration: 14m 12s · Tokens: 627.3k in / 2.1k out · Cost: $1.13 (+merge: $0.00)
Loading