Skip to content

Commit

Permalink
Merge pull request #1 from tspike/authorization-errors
Browse files Browse the repository at this point in the history
fix authorization errors; they were backwards, saying the user had al…
  • Loading branch information
samgrover committed Dec 4, 2015
2 parents 3fcfa61 + 02790b7 commit 5ab9cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions THGLocation/LocationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ class LocationManager: NSObject, LocationUpdateProvider, LocationAuthorizationPr
requestAuth = true
case .AuthorizedAlways:
if authorization != .Always {
return NSError(THGLocationError.AuthorizationWhenInUse)
return NSError(THGLocationError.AuthorizationAlways)
}
case .AuthorizedWhenInUse:
if authorization != .WhenInUse {
return NSError(THGLocationError.AuthorizationAlways)
return NSError(THGLocationError.AuthorizationWhenInUse)
}
}

Expand Down

0 comments on commit 5ab9cd9

Please sign in to comment.