Skip to content

Commit 9f61a01

Browse files
committed
continue to reduce cyclomatic complexity
1 parent f6dee97 commit 9f61a01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/Serializer/Exception/AggregatedException.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ public function getExceptions(): \Generator
4646
foreach ($exception->getExceptions() as $nestedParams => $nestedException) {
4747
yield "$param.$nestedParams" => $nestedException;
4848
}
49-
} else {
50-
yield $param => $exception;
49+
50+
continue;
5151
}
52+
53+
yield $param => $exception;
5254
}
5355
}
5456
}

0 commit comments

Comments
 (0)