Skip to content

Commit

Permalink
#16: Note that there is only one route option before departure.
Browse files Browse the repository at this point in the history
  • Loading branch information
danports committed May 17, 2020
1 parent 9801bac commit f921b58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/railstation/startup
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function selectDepartureRoute(trip)
table.insert(routeOptions, tags)
end
if #routeOptions == 1 then
print(string.format("Only one route to %s; preparing departure: %s", trip.destination, formatRouteTags(routeOptions[1])))
trip.routes = nil
handleDeparture(trip)
return
Expand Down

0 comments on commit f921b58

Please sign in to comment.