     }
 
     func locationManager(_ manager: CLLocationManager, monitoringDidFailFor region: CLRegion?, withError error: Error) {
-        self.delegate?.positionLocationManager(self, didFailWithError: error)
+        delegate?.positionLocationManager(self, didFailWithError: error)
     }
 
 }

        let status: LocationAuthorizationStatus = self.locationServicesStatus
        switch status {
            case .allowedAlways, .allowedWhenInUse:
                self._locationManager.stopMonitoringSignificantLocationChanges()
                self.isUpdatingLowPowerLocation = false
                self.updateLocationManagerStateIfNeeded()
                fallthrough
            default:
                break

        switch self.locationServicesStatus {
            case .allowedAlways,
                 .allowedWhenInUse:
                _locationManager.startUpdatingLocation()
                _locationManager.startMonitoringVisits()
                isUpdatingLocation = true
                updateLocationManagerStateIfNeeded()
                fallthrough
            default:
                break
