This is an automated email from the ASF dual-hosted git repository.

breautek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-geolocation.git


The following commit(s) were added to refs/heads/master by this push:
     new 944ac2e  refactor: fix implicit self reference & removed unused 
variable (#283)
944ac2e is described below

commit 944ac2eb25de17f6dfceb1a6031201fce882fa01
Author: TAICHI <[email protected]>
AuthorDate: Thu Nov 5 04:14:12 2026 +0900

    refactor: fix implicit self reference & removed unused variable (#283)
---
 src/ios/CDVLocation.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index 84bdf15..fc3fd61 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -82,7 +82,6 @@
 
 - (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
@@ -213,7 +212,7 @@
                 }
             }
             
-            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) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to