diff options
| author | Teddy Wing | 2017-05-23 15:08:49 +0200 |
|---|---|---|
| committer | Robert | 2017-05-29 08:49:52 +0200 |
| commit | 9aaa337d0b5e44736834f98f9aca8b4f31c63afc (patch) | |
| tree | 0e35a5b460c5a5a57bfb20b01de46f137ce6575a | |
| parent | 7d66ae0086b27f1237e9b592eb8a9386874d6e7b (diff) | |
| download | chouette-core-9aaa337d0b5e44736834f98f9aca8b4f31c63afc.tar.bz2 | |
VehicleJourneyAtStop#exceeds_gap?: Rename arguments
The names `first` and `second` were a little hard to follow at times.
Change these to new names that are more time-related to hopefully make
this more readable.
Refs #870
| -rw-r--r-- | app/models/chouette/vehicle_journey_at_stop.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/chouette/vehicle_journey_at_stop.rb b/app/models/chouette/vehicle_journey_at_stop.rb index 7d6414f55..be69de0ed 100644 --- a/app/models/chouette/vehicle_journey_at_stop.rb +++ b/app/models/chouette/vehicle_journey_at_stop.rb @@ -40,8 +40,8 @@ module Chouette end result end - def exceeds_gap?(first, second) - (4 * 3600) < ((second - first) % (3600 * 24)) + def exceeds_gap?(earlier, later) + (4 * 3600) < ((later - earlier) % (3600 * 24)) end end |
