Skip to content

Commit f080271

Browse files
Update example/lib/sources/submit_button.dart
1 parent 4e93957 commit f080271

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

example/lib/sources/submit_button.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ class _SubmitButtonFormState extends State<SubmitButtonForm> {
3434
_formKey.currentState?.instantValue['subscribe'] == true;
3535
final hasEmail = value?.isNotEmpty ?? false;
3636

37-
if (!emailRequired && !hasEmail) {
38-
return null;
39-
}
37+
if (!emailRequired && !hasEmail) return null;
4038

4139
return FormBuilderValidators.compose([
4240
FormBuilderValidators.required(),

0 commit comments

Comments
 (0)