Skip to content

fix: Unref stopped simulator logging helpers

9631f13
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

feat: Workspace filesystem cleanup #391

fix: Unref stopped simulator logging helpers
9631f13
Select commit
Loading
Failed to load commit list.
GitHub Actions / warden: code-simplifier completed May 5, 2026 in 17m 49s

1 issue

code-simplifier: Found 1 issue (1 low)

Low

Nested ternary reduces clarity in shouldRecoverLockDir - `src/utils/fs-lock.ts:78-82`

The early-return branch uses a ternary expression wrapping an awaited call to build the recovery object. Per the code-simplifier skill, multi-condition logic is clearer as an explicit if/else, especially when the operands include an await and object literal construction. Replacing it with an if/else makes the control flow easier to read.

Also found at:

  • src/utils/runtime-instance.ts:52-62

Duration: 17m 46s · Tokens: 790.7k in / 2.6k out · Cost: $1.41 (+merge: $0.00)