Skip to content

Commit

Permalink
refactor: Do not use useless undefined (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix authored Nov 2, 2024
1 parent f4251ef commit 0400181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const executeOxlintWithConfiguration = (
const result = /with\s(\d+)\srules/.exec(oxlintOutput);

if (result === null) {
return undefined;
return;
}

return Number.parseInt(result[1], 10) ?? undefined;
Expand Down

0 comments on commit 0400181

Please sign in to comment.