Don't bind the unused error when catching connection-pool failures

This commit is contained in:
Tor Arne Vestbø 2026-06-09 15:45:34 +02:00
parent d4d95f02e0
commit 1f556051b0
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class AgentResolver {
static func ResolveIP(_ controlSocketPath: String) async throws -> IPv4Address? { static func ResolveIP(_ controlSocketPath: String) async throws -> IPv4Address? {
do { do {
return try await resolveIP(controlSocketPath) return try await resolveIP(controlSocketPath)
} catch let error as GRPCConnectionPoolError { } catch is GRPCConnectionPoolError {
return nil return nil
} }
} }