remove useless condition part

This commit is contained in:
Kirill Braslavsky 2021-02-19 14:14:26 +02:00
parent 7bd17838fb
commit 6c17c7463f

View file

@ -138,7 +138,7 @@ class OrderProcessor {
$wc_order->update_meta_data( PayPalGateway::INTENT_META_KEY, $order->intent() ); $wc_order->update_meta_data( PayPalGateway::INTENT_META_KEY, $order->intent() );
$error_message = null; $error_message = null;
if ( ! $order || ! $this->order_is_approved( $order ) ) { if ( ! $this->order_is_approved( $order ) ) {
$error_message = __( $error_message = __(
'The payment has not been approved yet.', 'The payment has not been approved yet.',
'woocommerce-paypal-payments' 'woocommerce-paypal-payments'