Skip to content

Commit fd03193

Browse files
committed
flip logic for clarity
1 parent 4b96779 commit fd03193

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/Contexts/AssignmentValue.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public function getValue()
1818
{
1919
$child = $this->children[0] ?? null;
2020

21-
if ($child) {
22-
return [
23-
'name' => $child->name ?? $child->className ?? null,
24-
'type' => $child->type(),
25-
];
21+
if (!$child) {
22+
return null;
2623
}
2724

28-
return null;
25+
return [
26+
'name' => $child->name ?? $child->className ?? null,
27+
'type' => $child->type(),
28+
];
2929
}
3030
}

0 commit comments

Comments
 (0)