From e554cd36f15007e6c890b5997b75a842cd5fb5b5 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 9 Mar 2026 23:56:36 -0700 Subject: [PATCH] Remove unnecessary default accumulator and path check --- src/cli/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index 4405516..735b737 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -50,7 +50,7 @@ program .option("-u, --update", "Rewrite expected output in-place with actual output") .option("-k, --keep", "Keep temp directories after run") .option("--clean-env", "Start with empty environment") - .option("--path ", "Prepend to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val], [] as string[]) + .option("--path ", "Prepend to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val]) .option("--timeout ", "Per-command timeout", "10s") .option("-v, --verbose", "Print each command as it runs") .option("--parallel", "Run files in parallel") @@ -95,7 +95,7 @@ $ true const fileResult = await runFile(parsed, { cleanEnv: opts.cleanEnv ?? false, - pathDirs: opts.path.length > 0 ? opts.path : undefined, + pathDirs: opts.path, timeout: timeoutMs, verbose: opts.verbose ?? false, onCommand: opts.verbose