Skip to content

Commit 04cf304

Browse files
Reduce common control flows
1 parent 896c5f2 commit 04cf304

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Extension/DataCollector/FormDataExtractor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,13 @@ public function extractSubmittedData(FormInterface $form): array
103103
continue;
104104
}
105105

106+
$errorData['trace'][] = $cause;
106107
if ($cause instanceof \Exception) {
107-
$errorData['trace'][] = $cause;
108108
$cause = $cause->getPrevious();
109109

110110
continue;
111111
}
112112

113-
$errorData['trace'][] = $cause;
114-
115113
break;
116114
}
117115

0 commit comments

Comments
 (0)