From 4b7308854dbc9bb13774973c8ad7c45120538bdc Mon Sep 17 00:00:00 2001 From: cham-s Date: Tue, 23 Apr 2024 15:30:05 +0200 Subject: [PATCH] Remove visionOS availability check --- Sources/WebSocketKit/WebSocket+Connect.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WebSocketKit/WebSocket+Connect.swift b/Sources/WebSocketKit/WebSocket+Connect.swift index 67bb8780..b5207ee0 100644 --- a/Sources/WebSocketKit/WebSocket+Connect.swift +++ b/Sources/WebSocketKit/WebSocket+Connect.swift @@ -21,7 +21,7 @@ extension WebSocket { onUpgrade: @Sendable @escaping (WebSocket) -> () ) -> EventLoopFuture { let optionalURL: URL? - if #available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, visionOS 1.0, *) { + if #available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *) { optionalURL = URL(string: url, encodingInvalidCharacters: false) } else { optionalURL = URL(string: url)