         }
     }
     
-    private func ensure(
-        peripheralManagerHasState state: CBManagerState,
-        fn: @escaping (OpperationResult<Void>) -> Void)
-    {
+    private func ensure(peripheralManagerHasState state: CBManagerState, fn: @escaping (OpperationResult<Void>) -> Void) {
         if self.peripheralManager.state == .poweredOn { return fn(.success(result: ()) )}
         
         var attempts = 0

    
    // MARK: - PRIVATE METHODS
    
    private func ensure(
        centralManagerHasState state: CBManagerState,
        fn: @escaping (OpperationResult<Void>) -> Void)
    {
        if self.centralManager.state == .poweredOn { return fn(.success(result: ())) }
        
        var attempts = 0

                self.connectedPeers.append(peer)
            }
            
            self.centralManager.connect(peripheral, options: nil)
        }
    }
    
