Skip to content

Commit

Permalink
Reduce common control flows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 14, 2024
1 parent 896c5f2 commit 04cf304
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Extension/DataCollector/FormDataExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,13 @@ public function extractSubmittedData(FormInterface $form): array
continue;
}

$errorData['trace'][] = $cause;
if ($cause instanceof \Exception) {
$errorData['trace'][] = $cause;
$cause = $cause->getPrevious();

continue;
}

$errorData['trace'][] = $cause;

break;
}

Expand Down

0 comments on commit 04cf304

Please sign in to comment.