Commit e3bd984b authored by Kamaro Lambert's avatar Kamaro Lambert Committed by GitHub

Removed unnecessary else

parent 98ca59dc
...@@ -20,9 +20,8 @@ class Authenticate ...@@ -20,9 +20,8 @@ class Authenticate
if (Auth::guard($guard)->guest()) { if (Auth::guard($guard)->guest()) {
if ($request->ajax() || $request->wantsJson()) { if ($request->ajax() || $request->wantsJson()) {
return response('Unauthorized.', 401); return response('Unauthorized.', 401);
} else { }
return redirect()->guest('login'); return redirect()->guest('login');
}
} }
return $next($request); return $next($request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment