Skip to content

Commit 6513b9d

Browse files
committed
refactor: fix Xcode warning
1 parent 543fff4 commit 6513b9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ios/CDVLocation.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ - (BOOL)isAuthorized
8282

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

8887
if (locationServicesEnabledClassPropertyAvailable) { // iOS 4.x
@@ -213,7 +212,7 @@ - (void)getLocation:(CDVInvokedUrlCommand*)command
213212
}
214213
}
215214

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

0 commit comments

Comments
 (0)