Skip to content

Commit

Permalink
Updated get method
Browse files Browse the repository at this point in the history
  • Loading branch information
maab16 committed May 8, 2020
1 parent fab25c4 commit 8340a7a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Traits/QueryBuilderTrait.php
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 8340a7a

Please sign in to comment.