Skip to content

Commit

Permalink
removed exception as not needed we are already setting confirmationHa…
Browse files Browse the repository at this point in the history
…ndler to nil in the end
  • Loading branch information
dolar1111 committed Oct 3, 2023
1 parent 452fe98 commit c043ba0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions geolocator_apple/ios/Classes/Handlers/PermissionHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ - (void) requestPermission:(PermissionConfirmation)confirmationHandler
return;
}

if (self.confirmationHandler) {
// Permission request is already running, return immediatly with error
errorHandler(GeolocatorErrorPermissionRequestInProgress,
@"A request for location permissions is already running, please wait for it to complete before doing another request.");
return;
}

self.confirmationHandler = confirmationHandler;
self.errorHandler = errorHandler;
CLLocationManager *locationManager = [self getLocationManager];
Expand Down

0 comments on commit c043ba0

Please sign in to comment.