Skip to content

Commit 22c6c77

Browse files
committed
fixed a copilot comment
1 parent 0e59843 commit 22c6c77

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/Authenticator/Views/SignInView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public struct SignInView<Header: View,
6363
// Password validation is dynamic based on authentication flow
6464
// Check at validation time, not init time, since authenticationFlow may not be available yet
6565
self._passwordValidator = StateObject(wrappedValue: Validator(
66-
using: { [weak state] value in
67-
guard let state = state else { return nil }
68-
66+
using: { value in
6967
// Password is always required when shown (both password flow and userChoice with password preferred)
7068
return FieldValidators.required(value)
7169
}

0 commit comments

Comments
 (0)