From 1f556051b08b180480c07dd4ad712ba739cac317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 9 Jun 2026 15:45:34 +0200 Subject: [PATCH] Don't bind the unused error when catching connection-pool failures --- Sources/tart/MACAddressResolver/AgentResolver.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/MACAddressResolver/AgentResolver.swift b/Sources/tart/MACAddressResolver/AgentResolver.swift index 2978ce9..809ad06 100644 --- a/Sources/tart/MACAddressResolver/AgentResolver.swift +++ b/Sources/tart/MACAddressResolver/AgentResolver.swift @@ -9,7 +9,7 @@ class AgentResolver { static func ResolveIP(_ controlSocketPath: String) async throws -> IPv4Address? { do { return try await resolveIP(controlSocketPath) - } catch let error as GRPCConnectionPoolError { + } catch is GRPCConnectionPoolError { return nil } }