aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorTeddy Wing2017-05-23 15:08:49 +0200
committerTeddy Wing2017-05-26 13:20:55 +0200
commitefc870b9b54ae6ac36d6604a2cae3ba9780b85da (patch)
treec04265da2b5c636bfa2ce42c0c74395503f86628 /app
parentb311ce04f999995ec69398fcd17ac58b5dc8e444 (diff)
downloadchouette-core-efc870b9b54ae6ac36d6604a2cae3ba9780b85da.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
Diffstat (limited to 'app')
-rw-r--r--app/models/chouette/vehicle_journey_at_stop.rb4
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