Skip to content

Commit 0ee4543

Browse files
chore: remove comments
1 parent feb1e28 commit 0ee4543

8 files changed

Lines changed: 0 additions & 18 deletions

File tree

FirebaseSwiftUI/FirebaseAppleSwiftUI/Sources/Views/SignInWithAppleButton.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ extension SignInWithAppleButton: View {
3939
do {
4040
_ = try await authService.signIn(provider)
4141
} catch {
42-
// 1) Always report first, if a reporter exists
4342
reportError?(error)
4443

45-
// 2) If it's a conflict and we have a handler, handle it and stop
4644
if case let AuthServiceError.accountConflict(ctx) = error,
4745
let onConflict = accountConflictHandler {
4846
onConflict(ctx)

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/EmailAuthView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ public struct EmailAuthView {
5555
do {
5656
_ = try await authService.signIn(email: email, password: password)
5757
} catch {
58-
// 1) Always report first, if a reporter exists
5958
reportError?(error)
6059

61-
// 2) If it's a conflict and we have a handler, handle it and stop
6260
if case let AuthServiceError.accountConflict(ctx) = error,
6361
let onConflict = accountConflictHandler {
6462
onConflict(ctx)
@@ -73,10 +71,8 @@ public struct EmailAuthView {
7371
do {
7472
_ = try await authService.createUser(email: email, password: password)
7573
} catch {
76-
// 1) Always report first, if a reporter exists
7774
reportError?(error)
7875

79-
// 2) If it's a conflict and we have a handler, handle it and stop
8076
if case let AuthServiceError.accountConflict(ctx) = error,
8177
let onConflict = accountConflictHandler {
8278
onConflict(ctx)

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/EmailLinkView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ extension EmailLinkView: View {
9595
do {
9696
try await authService.handleSignInLink(url: url)
9797
} catch {
98-
// 1) Always report first, if a reporter exists
9998
reportError?(error)
10099

101-
// 2) If it's a conflict and we have a handler, handle it and stop
102100
if case let AuthServiceError.accountConflict(ctx) = error,
103101
let onConflict = accountConflictHandler {
104102
onConflict(ctx)

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/EnterVerificationCodeView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ struct EnterVerificationCodeView: View {
6060
)
6161
authService.navigator.clear()
6262
} catch {
63-
// 1) Always report first, if a reporter exists
6463
reportError?(error)
6564

66-
// 2) If it's a conflict and we have a handler, handle it and stop
6765
if case let AuthServiceError.accountConflict(ctx) = error,
6866
let onConflict = accountConflictHandler {
6967
onConflict(ctx)

FirebaseSwiftUI/FirebaseFacebookSwiftUI/Sources/Views/SignInWithFacebookButton.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ extension SignInWithFacebookButton: View {
4242
do {
4343
_ = try await authService.signIn(facebookProvider)
4444
} catch {
45-
// 1) Always report first, if a reporter exists
4645
reportError?(error)
4746

48-
// 2) If it's a conflict and we have a handler, handle it and stop
4947
if case let AuthServiceError.accountConflict(ctx) = error,
5048
let onConflict = accountConflictHandler {
5149
onConflict(ctx)

FirebaseSwiftUI/FirebaseGoogleSwiftUI/Sources/Views/SignInWithGoogleButton.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ extension SignInWithGoogleButton: View {
4646
do {
4747
_ = try await authService.signIn(googleProvider)
4848
} catch {
49-
// 1) Always report first, if a reporter exists
5049
reportError?(error)
5150

52-
// 2) If it's a conflict and we have a handler, handle it and stop
5351
if case let AuthServiceError.accountConflict(ctx) = error,
5452
let onConflict = accountConflictHandler {
5553
onConflict(ctx)

FirebaseSwiftUI/FirebaseOAuthSwiftUI/Sources/Views/GenericOAuthButton.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ extension GenericOAuthButton: View {
4949
do {
5050
_ = try await authService.signIn(provider)
5151
} catch {
52-
// 1) Always report first, if a reporter exists
5352
reportError?(error)
5453

55-
// 2) If it's a conflict and we have a handler, handle it and stop
5654
if case let AuthServiceError.accountConflict(ctx) = error,
5755
let onConflict = accountConflictHandler {
5856
onConflict(ctx)

FirebaseSwiftUI/FirebaseTwitterSwiftUI/Sources/Views/SignInWithTwitterButton.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ extension SignInWithTwitterButton: View {
3939
do {
4040
_ = try await authService.signIn(provider)
4141
} catch {
42-
// 1) Always report first, if a reporter exists
4342
reportError?(error)
4443

45-
// 2) If it's a conflict and we have a handler, handle it and stop
4644
if case let AuthServiceError.accountConflict(ctx) = error,
4745
let onConflict = accountConflictHandler {
4846
onConflict(ctx)

0 commit comments

Comments
 (0)