Skip to content

Commit 783c773

Browse files
committed
Unnecessary check
1 parent 6dedae2 commit 783c773

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

includes/class-wc-gateway-amazon-payments-advanced.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,6 @@ public function handle_account_registration( $customer_id ) {
271271
$buyer_user_id = $this->get_customer_id_from_buyer( $buyer_id );
272272

273273
if ( isset( $data['amazon_validate'] ) ) {
274-
if ( is_user_logged_in() ) {
275-
return; // We shouldn't be here anyways
276-
}
277-
278274
if ( $buyer_user_id ) {
279275
return; // We shouldn't be here anyways
280276
}

0 commit comments

Comments
 (0)