From 8f80afa49dc58fa86dc8a441df4048dca8c83c24 Mon Sep 17 00:00:00 2001 From: "Mohannad A. Hassan" Date: Sun, 5 Jan 2025 18:14:32 +0200 Subject: [PATCH] Some linting issues --- .../Sources/AuthenticationClient.swift | 3 +-- .../Sources/AuthentincationClientImpl.swift | 10 ++++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Data/AuthenticationClient/Sources/AuthenticationClient.swift b/Data/AuthenticationClient/Sources/AuthenticationClient.swift index ba5ef10c..46b72cb0 100644 --- a/Data/AuthenticationClient/Sources/AuthenticationClient.swift +++ b/Data/AuthenticationClient/Sources/AuthenticationClient.swift @@ -63,8 +63,7 @@ public protocol AuthenticationClient { var authenticationState: AuthenticationState { get } } - -public struct AuthentincationClientBuilder { +public enum AuthentincationClientBuilder { public static func make(withConfigurations config: OAuthAppConfiguration?) -> AuthenticationClient { AuthenticationClientImpl(configurations: config) } diff --git a/Data/AuthenticationClient/Sources/AuthentincationClientImpl.swift b/Data/AuthenticationClient/Sources/AuthentincationClientImpl.swift index 1fe7d4a0..9afa87cf 100644 --- a/Data/AuthenticationClient/Sources/AuthentincationClientImpl.swift +++ b/Data/AuthenticationClient/Sources/AuthentincationClientImpl.swift @@ -17,7 +17,7 @@ final class AuthenticationClientImpl: AuthenticationClient { init(configurations: OAuthAppConfiguration?, caller: OAuthCaller, persistance: Persistance) { self.caller = caller self.persistance = persistance - self.appConfiguration = configurations + appConfiguration = configurations } // MARK: Public @@ -112,8 +112,10 @@ final class AuthenticationClientImpl: AuthenticationClient { extension AuthenticationClientImpl { public convenience init(configurations: OAuthAppConfiguration?) { - self.init(configurations: configurations, - caller: AppAuthCaller(), - persistance: KeychainPersistance()) + self.init( + configurations: configurations, + caller: AppAuthCaller(), + persistance: KeychainPersistance() + ) } }