From 828286f132b18df06d780e8dae564d02992d676c Mon Sep 17 00:00:00 2001 From: Destu Cikal Date: Mon, 1 Dec 2025 13:47:08 +0700 Subject: [PATCH] fix: swiftlint ignore --- .../Services/Authentication/AuthenticationService.swift | 7 +++++-- Tiny/Features/Profile/Views/ProfileView.swift | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Tiny/Core/Services/Authentication/AuthenticationService.swift b/Tiny/Core/Services/Authentication/AuthenticationService.swift index de6789b..d4f9027 100644 --- a/Tiny/Core/Services/Authentication/AuthenticationService.swift +++ b/Tiny/Core/Services/Authentication/AuthenticationService.swift @@ -13,6 +13,7 @@ import AuthenticationServices import CryptoKit internal import Combine +// swiftlint:disable type_body_length @MainActor class AuthenticationService: ObservableObject { @Published var currentUser: User? @@ -161,7 +162,7 @@ class AuthenticationService: ObservableObject { currentUser = nil isAuthenticated = false } - + // swiftlint:disable cyclomatic_complexity func deleteAccount() async throws { isLoading = true defer { isLoading = false } @@ -325,7 +326,8 @@ class AuthenticationService: ObservableObject { throw error } } - + // swiftlint:enable cyclomatic_complexity + private func fetchUserData(userId: String) { database.collection("users").document(userId).addSnapshotListener { [weak self] snapshot, error in guard let snapshot = snapshot, snapshot.exists, let data = snapshot.data() else { @@ -453,3 +455,4 @@ class AuthenticationService: ObservableObject { } } +// swiftlint:enable type_body_length diff --git a/Tiny/Features/Profile/Views/ProfileView.swift b/Tiny/Features/Profile/Views/ProfileView.swift index b3c9ce6..c66b158 100644 --- a/Tiny/Features/Profile/Views/ProfileView.swift +++ b/Tiny/Features/Profile/Views/ProfileView.swift @@ -240,8 +240,6 @@ struct ProfileView: View { } message: { Text("This will permanently delete your account and all associated data. This action cannot be undone.") } - - } .disabled(authService.isLoading) }