From c773b9cb4c8587f9d50d6a3596e53cdb41ac4ce2 Mon Sep 17 00:00:00 2001 From: Khan M Rashedun-Naby Date: Thu, 7 Jun 2018 21:45:03 +0600 Subject: [PATCH] Made use unused variable and removed else --- includes/class-wc-privacy-exporters.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/class-wc-privacy-exporters.php b/includes/class-wc-privacy-exporters.php index 608c7512539..8cd8903ae18 100644 --- a/includes/class-wc-privacy-exporters.php +++ b/includes/class-wc-privacy-exporters.php @@ -53,7 +53,7 @@ class WC_Privacy_Exporters { * @return array An array of personal data in name value pairs */ public static function order_data_exporter( $email_address, $page ) { - $done = false; + $done = true; $page = (int) $page; $user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data. $data_to_export = array(); @@ -79,8 +79,6 @@ class WC_Privacy_Exporters { ); } $done = 10 > count( $orders ); - } else { - $done = true; } return array(