summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl7
1 files changed, 2 insertions, 5 deletions
diff --git a/index.pl b/index.pl
index b4db45c..4d5a013 100644
--- a/index.pl
+++ b/index.pl
@@ -371,11 +371,8 @@ sub handle_request {
my $platform = ( split( / /, $result->platform ) )[0];
my $line = $result->line;
my $delay = $result->delay;
- if ( $via and $result->can('route') ) {
- my @route = $result->route;
- if ( $result->isa('Travel::Status::DE::IRIS::Result') ) {
- @route = $result->route_post;
- }
+ if ( $via and $result->can('route_post') ) {
+ my @route = $result->route_post;
if ( not( List::MoreUtils::any { m{$via}i } @route ) ) {
next;
}