         guard
             let characteristics = service.characteristics,
             service.uuid == serviceId
-            else {
-                return
+        else {
+            return
         }
         
         for characteristic in characteristics {

        let peer = ClinkPeer(peripheral: peripheral)
        let peerManager = self.peerManager ?? self
        
        if let i = self.connectedPeers.index(of: peer) {
            self.connectedPeers[i] = peer
        } else {
            self.connectedPeers.append(peer)
        }
        
        peerManager.save(peer: peer)
        self.delegate?.clink(self, didDiscoverPeer: peer)
        
        peripheral.delegate = self
        
        central.connect(peripheral, options: nil)
    }
    
    public final func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral) {
        if self.logLevel == .verbose { print("calling \(#function)") }
        
        let peer = ClinkPeer(peripheral: peripheral)
        let peerManager = self.peerManager ?? self
        
        if let i = self.connectedPeers.index(where: { $0.id == peripheral.identifier }) {
            self.connectedPeers[i] = peer

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