Update class-wc-ajax.php

Removed unused code.
This commit is contained in:
Yash Kapoor 2019-06-25 10:58:56 +05:30 committed by GitHub
parent 29d630b099
commit 84fd2bbca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -1814,7 +1814,6 @@ class WC_AJAX {
try { try {
$order = wc_get_order( $order_id ); $order = wc_get_order( $order_id );
$order_items = $order->get_items();
$max_refund = wc_format_decimal( $order->get_total() - $order->get_total_refunded(), wc_get_price_decimals() ); $max_refund = wc_format_decimal( $order->get_total() - $order->get_total_refunded(), wc_get_price_decimals() );
if ( ! $refund_amount || $max_refund < $refund_amount || 0 > $refund_amount ) { if ( ! $refund_amount || $max_refund < $refund_amount || 0 > $refund_amount ) {