Skip to content

Commit

Permalink
Simplify 'if'
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 10, 2023
1 parent 9529c7c commit b904037
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/realtime-compiler/src/ConsoleOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ protected function formatLineForOutput(string $line): ?string
return $this->formatRequestLine($line);
}
if (str_ends_with(trim($line), 'Accepted') || str_ends_with(trim($line), 'Closing')) {
if ($this->verbose) {
return $this->formatRequestStatusLine($line);
} else {
return null;
}
return $this->verbose ? $this->formatRequestStatusLine($line) : null;
}

return $this->formatLine($line, Carbon::now());
Expand Down

0 comments on commit b904037

Please sign in to comment.