fix(utils): Prevent RangeError from large command output #433
@sentry/warden / warden: code-simplifier
completed
May 29, 2026 in 4m 12s
1 issue
code-simplifier: Found 1 issue (1 low)
Low
Stdout and stderr chunk handlers are duplicated instead of extracted into a shared helper - `src/utils/command.ts:286-330`
The two attachStream handlers (stdout and stderr) are structurally identical — extract a factory function (e.g. makeChunkHandler) that takes the per-stream state and callback to eliminate the duplication.
⏱ 3m 37s · 112.9k in / 11.4k out · $0.45
Loading