Skip to content

Commit

Permalink
Remove impossible case
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Dec 20, 2024
1 parent 27717a1 commit c19fadc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/Http/Controllers/TeamsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down

0 comments on commit c19fadc

Please sign in to comment.