Skip to content

Commit

Permalink
removed legacy application check
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 23, 2011
1 parent d0d713f commit c55eba0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Mojolicious/Command/routes.pm
Expand Up @@ -23,13 +23,9 @@ sub run {
my $verbose;
GetOptions(verbose => sub { $verbose = 1 });

# Check if application has routes
my $app = $self->app;
die "Application has no routes.\n" unless $app->can('routes');

# Walk and draw
my $routes = [];
$self->_walk($_, 0, $routes) for @{$app->routes->children};
$self->_walk($_, 0, $routes) for @{$self->app->routes->children};
$self->_draw($routes, $verbose);
}

Expand Down

0 comments on commit c55eba0

Please sign in to comment.