Skip to content

Commit

Permalink
Add @unknown default case
Browse files Browse the repository at this point in the history
  • Loading branch information
KITSSebSkuse committed Apr 25, 2019
1 parent f1d76f0 commit 6a6beba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Spot/LocationAccess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ open class LocationAccess {
return false
case .authorizedAlways, .authorizedWhenInUse:
return true
@unknown default:
return false
}
}
}
2 changes: 2 additions & 0 deletions Spot/LocationHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class LocationHandler: NSObject, LocationHandling, CLLocationManagerDelegate {
case .notDetermined:
// Not determined is the initial state and is not used for observing changes to the authorization status
break
@unknown default:
break
}
}
}

0 comments on commit 6a6beba

Please sign in to comment.