Unverified Commit af0aa487 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

fix(Maintainability): Simplify code for dependency resolution

parent a5ee7a7f
......@@ -186,12 +186,11 @@ class JsonBlueprintDenormalizer implements DenormalizerInterface, SerializerAwar
while (count($subreqs_with_unresolved_deps)) {
$no_deps = array_filter($subreqs_with_unresolved_deps, $dependency_is_resolved);
$diff = array_diff($subreqs_with_unresolved_deps, $no_deps);
if (empty($no_deps)) {
throw new BadRequestHttpException('Waiting for unresolvable request. Abort.');
$subreqs_with_unresolved_deps = $diff;
$subreqs_with_unresolved_deps = array_diff($subreqs_with_unresolved_deps, $no_deps);
return $sequence;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment