Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various compiler warnings #1810

Merged
merged 1 commit into from
Nov 7, 2018
Merged

Fix various compiler warnings #1810

merged 1 commit into from
Nov 7, 2018

Conversation

frederoni
Copy link
Contributor

@frederoni frederoni commented Nov 2, 2018

Removed unnecessary guard of a non-optional subscript.

cc @1ec5

@@ -208,7 +208,7 @@ public class CarPlayNavigationViewController: UIViewController {

// Update the user puck
mapView?.updatePreferredFrameRate(for: routeProgress)
let camera = MGLMapCamera(lookingAtCenter: location.coordinate, fromDistance: 120, pitch: 60, heading: location.course)
let camera = MGLMapCamera(lookingAtCenter: location.coordinate, acrossDistance: 120, pitch: 60, heading: location.course)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the existing values are meant to be altitudes, not viewing distances. See #1815.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped this commit

@frederoni frederoni merged commit 5ea5cf8 into master Nov 7, 2018
@frederoni frederoni deleted the fred/dep-warn branch November 7, 2018 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants