From 2c25b9051887408592d272d8762ca72bebbc483f Mon Sep 17 00:00:00 2001 From: nanaya Date: Fri, 20 Dec 2024 16:53:47 +0900 Subject: [PATCH] Remove impossible case --- app/Http/Controllers/TeamsController.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/Http/Controllers/TeamsController.php b/app/Http/Controllers/TeamsController.php index 0fea6b6937b..2b7fbae40bf 100644 --- a/app/Http/Controllers/TeamsController.php +++ b/app/Http/Controllers/TeamsController.php @@ -32,12 +32,6 @@ public function part(): Response { $member = TeamMember::findOrFail(\Auth::user()->getKey()); - if ($member === null) { - \Session::flash('popup', osu_trans('teams.part.no_team')); - - return ujs_redirect(route('home')); - } - $member->delete(); \Session::flash('popup', osu_trans('teams.part.ok'));