Skip to content

Commit ad209dd

Browse files
committed
Updated find method
1 parent 8ee47b8 commit ad209dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Traits/QueryBuilderTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ protected function all($options = [])
4141
*/
4242
protected function find($id, $options = [])
4343
{
44-
$result = collect(WooCommerce::find("{$this->endpoint}/{$id}", $options));
45-
return $this;
44+
return collect(WooCommerce::find("{$this->endpoint}/{$id}", $options));
4645
}
4746

4847
/**

0 commit comments

Comments
 (0)