Skip to content

Commit 858e346

Browse files
committed
compact array
1 parent 04fb961 commit 858e346

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/Http/Controllers/SettingsController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ public function checkForCpUpdate(): JsonResponse
8383
flash('A new version of the Control Panel is available.', $target, 'info');
8484
}
8585

86-
return response()->json([
87-
$target
88-
]);
86+
return response()->json(compact($target));
8987
}
9088
}

0 commit comments

Comments
 (0)