     /// Checks if focus lock is supported.
     public var isFocusLockSupported: Bool {
         get {
-            if let device: AVCaptureDevice = self._currentDevice {
+            if let device = self._currentDevice {
                 return device.isFocusModeSupported(.locked)
             }
             return false

        }
        set {
            self.executeClosureAsyncOnSessionQueueIfNecessary {
                if let device = self._currentDevice {
                    guard
                        device.torchMode != newValue,
                        device.hasTorch
                        else {
                            return
                    }
                    
                    do {
                        try device.lockForConfiguration()
                        if device.isTorchModeSupported(newValue) {
                            device.torchMode = newValue
                        }
                        device.unlockForConfiguration()
                    } catch {
                        print("NextLevel, torchMode failed to lock device for configuration")
                    }
                }
            }
        }

    /// The focus mode of the device.
    public var focusMode: NextLevelFocusMode {
        get {
            if let device = self._currentDevice {
                return device.focusMode
            }
            return .locked
        }
        set {
            self.executeClosureAsyncOnSessionQueueIfNecessary {
                guard let device = self._currentDevice,
                    device.isFocusModeSupported(newValue),
                    device.focusMode != newValue
                else {
                    return
                }
                
                do {
                    try device.lockForConfiguration()
                    device.focusMode = newValue
                    device.unlockForConfiguration()
                } catch {
                    print("NextLevel, focusMode failed to lock device for configuration")
                }
            }
        }
