Skip to content

Commit

Permalink
Merge pull request #1273 from 2jumper3/patch-2
Browse files Browse the repository at this point in the history
Update WalletPairService.swift
  • Loading branch information
llbartekll authored Feb 20, 2024
2 parents 3c88656 + 2bafc52 commit 1fcdc47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ actor WalletPairService {
enum Errors: Error {
case pairingAlreadyExist(topic: String)
case networkNotConnected
case noPendingRequest
}

let networkingInteractor: NetworkInteracting
Expand All @@ -30,7 +31,7 @@ actor WalletPairService {
logger.debug("Pairing with uri: \(uri)")
guard try !pairingHasPendingRequest(for: uri.topic) else {
logger.debug("Pairing with topic (\(uri.topic)) has pending request")
return
throw Errors.noPendingRequest
}

let pairing = WCPairing(uri: uri)
Expand Down

0 comments on commit 1fcdc47

Please sign in to comment.