diff --git a/ChatApp/.swiftlint.yml b/ChatApp/.swiftlint.yml index 2122dcb8..25b6adf1 100644 --- a/ChatApp/.swiftlint.yml +++ b/ChatApp/.swiftlint.yml @@ -26,7 +26,6 @@ opt_in_rules: - fatal_error_message - first_where - toggle_bool - - unused_private_declaration - modifier_order - contains_over_first_not_nil - convenience_type diff --git a/ChatApp/ChatApp/Managers/FirebaseAuthentication.swift b/ChatApp/ChatApp/Managers/FirebaseAuthentication.swift index 2e1e37f0..8e944dcb 100644 --- a/ChatApp/ChatApp/Managers/FirebaseAuthentication.swift +++ b/ChatApp/ChatApp/Managers/FirebaseAuthentication.swift @@ -41,7 +41,7 @@ extension FirebaseAuthentication { fatalError("Unable to create login UI") } authUI.delegate = self - authUI.providers = [FUIGoogleAuth(), FUIEmailAuth()] + authUI.providers = [FUIGoogleAuth(authUI: authUI), FUIEmailAuth()] return authUI.authViewController() } } diff --git a/ChatCore/Utils/Network/ReachabilityObserver.swift b/ChatCore/Utils/Network/ReachabilityObserver.swift index 0942df3d..48b8b59a 100644 --- a/ChatCore/Utils/Network/ReachabilityObserver.swift +++ b/ChatCore/Utils/Network/ReachabilityObserver.swift @@ -37,11 +37,11 @@ private extension ReachabilityObserver { do { reachability = try Reachability() - reachability?.whenReachable = { [weak self] reachability in + reachability?.whenReachable = { [weak self] _ in self?.reachabilityChanged(.reachable) } - reachability?.whenUnreachable = { [weak self] reachability in + reachability?.whenUnreachable = { [weak self] _ in self?.reachabilityChanged(.unreachable) }