From 06c680ee5279b4c8fffaeb477db87e44e7e0ab92 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 14 Sep 2016 18:35:33 -0400 Subject: [PATCH] Fix redirect on server delete --- app/Http/Controllers/Admin/ServersController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Admin/ServersController.php b/app/Http/Controllers/Admin/ServersController.php index ec2d3ba53..5e09093b4 100644 --- a/app/Http/Controllers/Admin/ServersController.php +++ b/app/Http/Controllers/Admin/ServersController.php @@ -347,12 +347,11 @@ class ServersController extends Controller } catch(\Exception $ex) { Log::error($ex); Alert::danger('An unhandled exception occured while attemping to delete this server. Please try again.')->flash(); - } finally { - return redirect()->route('admin.servers.view', [ - 'id' => $id, - 'tab' => 'tab_delete' - ]); } + return redirect()->route('admin.servers.view', [ + 'id' => $id, + 'tab' => 'tab_delete' + ]); } public function postToggleInstall(Request $request, $id)