Skip to content

Commit

Permalink
Remove use of CLLocationDistance.zero and use 0.0 for backward compat…
Browse files Browse the repository at this point in the history
…ibility.
  • Loading branch information
avi-c committed Apr 26, 2019
1 parent 8292183 commit d7a4f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapboxCoreNavigation/RouteProgress.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ open class RouteProgress: NSObject {
let stepSegmentMaximumSpeedLimits = Array(segmentMaximumSpeedLimits[maneuverCoordinateIndex..<nextManeuverCoordinateIndex])
maximumSpeedLimitsByStep.append(stepSegmentMaximumSpeedLimits)

var totalDistanceTraveled = CLLocationDistance.zero
var totalDistanceTraveled = 0.0
var previousCoordinate = coordinates.first!
var maximumSpeedPerCoordinate: [PositionedSpeedLimit] = []

Expand Down

0 comments on commit d7a4f77

Please sign in to comment.