Skip to content

Commit 788a03d

Browse files
committed
fix(globalset): make global repo return parent::find value when run, even if null
1 parent 3ef6e1d commit 788a03d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Repositories/GlobalRepository.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ public function find($id): ?GlobalSet
3939
return (new $global)->register();
4040
}
4141

42-
$r = parent::find($id);
43-
44-
if ($r) {
45-
return $r;
46-
}
42+
return parent::find($id);
4743
}
4844

4945
private function initializeGlobals()

0 commit comments

Comments
 (0)