From 8340a7aa839358a21f787e73637361fb5fd90fcf Mon Sep 17 00:00:00 2001 From: Md Abu Ahsan Basir Date: Fri, 8 May 2020 15:37:05 +0600 Subject: [PATCH] Updated get method --- src/Traits/QueryBuilderTrait.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Traits/QueryBuilderTrait.php b/src/Traits/QueryBuilderTrait.php index 143df5a..8961fde 100644 --- a/src/Traits/QueryBuilderTrait.php +++ b/src/Traits/QueryBuilderTrait.php @@ -101,13 +101,7 @@ protected function batch($data) */ protected function get() { - try { - $results = WooCommerce::all($this->endpoint, $this->options); - - return $results; - } catch (\Exception $ex) { - throw new \Exception($ex->getMessage(), 1); - } + return WooCommerce::all($this->endpoint, $this->options); } /**