removed bloated if statement from front controller.

This commit is contained in:
Taylor Otwell 2011-07-14 00:05:13 -05:00
parent 794e0e6d17
commit d95ead812a
1 changed files with 2 additions and 9 deletions

View File

@ -93,14 +93,7 @@
{
$route = System\Router::route(Request::method(), Request::uri());
if ( ! is_null($route))
{
$response = $route->call();
}
else
{
$response = System\Response::make(View::make('error/404'), 404);
}
$response = (is_null($route)) ? System\Response::make(View::make('error/404'), 404) : $route->call();
}
else
{