Skip to content

Commit 2a7180f

Browse files
committed
return early
1 parent 19f9950 commit 2a7180f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/Library/CrudPanel/CrudFilter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,9 @@ public function getNamespacedViewWithFallbacks()
151151
$namespaces = array_merge([$this->viewNamespace], $namespaces);
152152
}
153153

154-
$views = array_map(function ($item) use ($type) {
154+
return array_map(function ($item) use ($type) {
155155
return $item.'.'.$type;
156156
}, $namespaces);
157-
158-
return $views;
159157
}
160158

161159
// ---------------------

0 commit comments

Comments
 (0)