Skip to content

Commit

Permalink
Only set exit code if you haven't set it already. (#4044)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 29, 2023
1 parent c1dda34 commit c6399c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/sitespeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ async function start() {
}

if (
!budgetFailing ||
(parsed.options.budget && parsed.options.budget.suppressExitCode)
(!budgetFailing ||
(parsed.options.budget && parsed.options.budget.suppressExitCode)) &&
process.exitCode === undefined
) {
process.exitCode = 0;
}
Expand Down

0 comments on commit c6399c8

Please sign in to comment.