Skip to content

Commit

Permalink
fix: try patterns even without a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Feb 2, 2023
1 parent 081b0a9 commit 6052491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function handleReload(options: ResolvedRunOptions, parameters: RunnerHandlerPara
const file = parameters.file.replaceAll('\\', '/')

options.input.forEach((runner) => {
if (!runner.condition?.(file)) {
if (runner.condition && !runner.condition(file)) {
debug(`${name} condition did not pass for ${c.gray(parameters.file)}`)
return
}

Expand Down

0 comments on commit 6052491

Please sign in to comment.