Skip to content

Commit 8340a7a

Browse files
committed
Updated get method
1 parent fab25c4 commit 8340a7a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Traits/QueryBuilderTrait.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,7 @@ protected function batch($data)
101101
*/
102102
protected function get()
103103
{
104-
try {
105-
$results = WooCommerce::all($this->endpoint, $this->options);
106-
107-
return $results;
108-
} catch (\Exception $ex) {
109-
throw new \Exception($ex->getMessage(), 1);
110-
}
104+
return WooCommerce::all($this->endpoint, $this->options);
111105
}
112106

113107
/**

0 commit comments

Comments
 (0)