Skip to content

Commit

Permalink
using ?? operator (Null Coalescing Operator) (#51305)
Browse files Browse the repository at this point in the history
  • Loading branch information
saMahmoudzadeh authored May 6, 2024
1 parent a9fe9bb commit 728bc34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Concerns/RunsInParallel.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ public function execute(): int
});
}

return $potentialExitCode === null
? $this->getExitCode()
: $potentialExitCode;
return $potentialExitCode ?? $this->getExitCode();
}

/**
Expand Down

0 comments on commit 728bc34

Please sign in to comment.