Skip to content

Commit

Permalink
Remove unnecacerry else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenvh committed May 28, 2016
1 parent 1653a49 commit 41f537e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Middleware/Guest.php
Expand Up @@ -38,9 +38,9 @@ public function handle($request, Closure $next)
if ( ! $this->auth->guest()) {
if ($request->ajax()) {
return response('Unauthorized.', 401);
} else {
return redirect('admin');
}

return redirect('admin');
}

return $next($request);
Expand Down

0 comments on commit 41f537e

Please sign in to comment.