diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 0e72e72410e..0136b9fadae 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -702,9 +702,8 @@ class WC_Checkout { /* translators: %s: email address */ $errors->add( 'validation', sprintf( __( '%s is not a valid email address.', 'woocommerce' ), '' . esc_html( $field_label ) . '' ) ); continue; - }else{ - $data[ $key ] = sanitize_email( $data[ $key ] ); } + $data[ $key ] = sanitize_email( $data[ $key ] ); } if ( '' !== $data[ $key ] && in_array( 'state', $format, true ) ) {