mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
refactor: if / else / elseif statements
- Change If Else Value Assign To Early Return - Change Nested Ifs To Early Return - Remove Always Else
This commit is contained in:
@@ -43,9 +43,8 @@ class ActivationController extends Controller
|
||||
|
||||
return redirect()->route('login')
|
||||
->withSuccess(trans('auth.activation-success'));
|
||||
} else {
|
||||
return redirect()->route('login')
|
||||
->withErrors(trans('auth.activation-error'));
|
||||
}
|
||||
return redirect()->route('login')
|
||||
->withErrors(trans('auth.activation-error'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user