From 04a17df206461976b7505f506bba02d66d66d9d4 Mon Sep 17 00:00:00 2001 From: Alex Nachbaur Date: Wed, 14 Aug 2024 18:56:20 -0700 Subject: [PATCH] Update lint violations --- Sources/AuthFoundation/Utilities/URL+InternalExtensions.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/AuthFoundation/Utilities/URL+InternalExtensions.swift b/Sources/AuthFoundation/Utilities/URL+InternalExtensions.swift index 37c5510d8..588c86dff 100644 --- a/Sources/AuthFoundation/Utilities/URL+InternalExtensions.swift +++ b/Sources/AuthFoundation/Utilities/URL+InternalExtensions.swift @@ -13,10 +13,11 @@ import Foundation extension URL { - @inlinable // Workaround to address a known bug with URL.appendingPathComponent on Linux. // https://github.com/apple/swift-corelibs-foundation/issues/4849 + @inlinable func appendingComponent(_ component: String) -> URL { + // swiftlint:disable force_unwrapping #if os(Linux) var components = URLComponents(url: self, resolvingAgainstBaseURL: true)! if !components.path.hasSuffix("/") { @@ -29,5 +30,6 @@ extension URL { result.appendPathComponent(component) return result #endif + // swiftlint:enable force_unwrapping } }