summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-20 13:41:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-20 13:41:53 +0100
commit6e7e2d798651560c940e58f68d8d7fb79d18670b (patch)
treebf611c5094010504bc055e0bdf86b1e02886d072 /lib/Travel/Status/DE
parentd47a165b3463fd3d52e5a05a821b7a8fd16f45ec (diff)
route_interesting: Do not include the destination in the route in some cases
Diffstat (limited to 'lib/Travel/Status/DE')
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm
index 0438722..042637a 100644
--- a/lib/Travel/Status/DE/IRIS/Result.pm
+++ b/lib/Travel/Status/DE/IRIS/Result.pm
@@ -302,6 +302,9 @@ sub route_interesting {
if ( @via_main and $via_main[-1] eq $last_stop ) {
pop(@via_main);
}
+ if ( @via and $via[-1] eq $last_stop ) {
+ pop(@via);
+ }
if ( @via_main and @via and $via[0] eq $via_main[0] ) {
shift(@via_main);