feat: Workspace filesystem cleanup #391
Merged
GitHub Actions / warden: code-simplifier
completed
May 4, 2026 in 14m 19s
1 issue
code-simplifier: Found 1 issue (1 low)
Low
Nested ternary reduces clarity in shouldRecoverLockDir - `src/utils/fs-lock.ts:80-84`
The early-return branch uses a ternary expression wrapping an awaited call to construct the result object, which the skill explicitly discourages in favor of clear if/else chains. Replacing it with explicit if/else improves readability and matches the project's code-simplifier guidance. User-visible impact: maintainers must mentally parse the ternary plus object shorthand to understand control flow.
Also found at:
src/daemon.ts:152-171src/utils/runtime-instance.ts:53-55
Duration: 14m 15s · Tokens: 627.0k in / 2.1k out · Cost: $1.12 (+merge: $0.00)
Loading