Skip to content

Commit f9f9cdd

Browse files
fix(authenticator): remove unnecessary assertion in PendingVerificationCheckState constructor (#2324)
fix: remove assertion in constructor
1 parent 672a7cf commit f9f9cdd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/amplify_authenticator/lib/src/state/auth_state.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,5 @@ class ConfirmSignInCustom extends UnauthenticatedState {
9494
class PendingVerificationCheckState extends UnauthenticatedState {
9595
const PendingVerificationCheckState({
9696
required AuthenticatorStep step,
97-
}) : assert(
98-
step == AuthenticatorStep.signIn ||
99-
step == AuthenticatorStep.confirmSignUp,
100-
'Invalid AuthenticatorStep type: $step',
101-
),
102-
super(step: step);
97+
}) : super(step: step);
10398
}

0 commit comments

Comments
 (0)