Skip to content

Commit be5527e

Browse files
committed
fix typecheck: handle optional rules type
1 parent 71976b9 commit be5527e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For further troubleshooting, consider either of the following:
135135

136136
private static rulesBlank (jobs: ReadonlyArray<Job>) {
137137
for (const job of jobs) {
138-
if (job.rules === null) continue;
138+
if (!job.rules) continue;
139139
assert(job.rules.length > 0, chalk`{blue ${job.name}} {yellow rules:} config can't be blank`);
140140
}
141141
}

0 commit comments

Comments
 (0)