Browse Source

Removed unnecessary 'else' statement

Melvin Lammerts 10 years ago
parent
commit
06886b7369
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/filters.php

+ 1 - 4
app/filters.php

@@ -41,10 +41,7 @@ Route::filter('auth', function()
 		{
 			return Response::make('Unauthorized', 401);
 		}
-		else
-		{
-			return Redirect::guest('login');
-		}
+		return Redirect::guest('login');
 	}
 });