mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Remove leftover return
This commit is contained in:
@@ -400,8 +400,6 @@ class AdminController
|
||||
$this->admin->json_response = ['status' => 'error', 'message' => $e->getMessage()];
|
||||
return;
|
||||
}
|
||||
$this->admin->json_response = ['status' => 'success', 'message' => $result];
|
||||
return true;
|
||||
|
||||
if ($result) {
|
||||
$this->admin->json_response = ['status' => 'success', 'message' => $this->admin->translate(is_string($result) ? $result : sprintf($this->admin->translate('PLUGIN_ADMIN.PACKAGE_X_INSTALLED_SUCCESSFULLY', null, true), $package))];
|
||||
|
||||
Reference in New Issue
Block a user