Skip to content

Commit

Permalink
refactor: fix Xcode warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kumo01GitHub committed Nov 24, 2024
1 parent 543fff4 commit 6513b9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ios/CDVLocation.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ - (BOOL)isAuthorized

- (BOOL)isLocationServicesEnabled
{
BOOL locationServicesEnabledInstancePropertyAvailable = [self.locationManager respondsToSelector:@selector(locationServicesEnabled)]; // iOS 3.x
BOOL locationServicesEnabledClassPropertyAvailable = [CLLocationManager respondsToSelector:@selector(locationServicesEnabled)]; // iOS 4.x

if (locationServicesEnabledClassPropertyAvailable) { // iOS 4.x
Expand Down Expand Up @@ -213,7 +212,7 @@ - (void)getLocation:(CDVInvokedUrlCommand*)command
}
}

if (!__locationStarted || (__highAccuracyEnabled != enableHighAccuracy)) {
if (!self->__locationStarted || (self->__highAccuracyEnabled != enableHighAccuracy)) {
// add the callbackId into the array so we can call back when get data
@synchronized (self.locationData.locationCallbacks) {
if (callbackId != nil) {
Expand Down

0 comments on commit 6513b9d

Please sign in to comment.