Skip to content

Commit 0d84921

Browse files
committed
Fix warning
1 parent e1ae0b6 commit 0d84921

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

OpenGpxTracker/ViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,9 +1244,8 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
12441244
}
12451245

12461246
// Are location services enabled?
1247-
guard CLLocationManager.locationServicesEnabled() else {
1247+
if authorizationStatus == .denied {
12481248
displayLocationServicesDisabledAlert()
1249-
return
12501249
}
12511250
}
12521251
///

0 commit comments

Comments
 (0)