Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Remove redunant debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Joosten authored and Tim Joosten committed Nov 3, 2020
1 parent 979829d commit c66bc52
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/Transformers/ErrorTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ public function transform(Throwable $exception): array
}

if (config('app.debug')) {
if (config('app.debug')) {
$error['debug'] = [
'exception' => get_class($exception),
'trace' => $this->parseTrace($exception),
];
}
$error['debug'] = [
'exception' => get_class($exception),
'trace' => $this->parseTrace($exception),
];
}

return $error;
Expand Down

0 comments on commit c66bc52

Please sign in to comment.