Skip to content

Commit

Permalink
Removed unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Jan 31, 2014
1 parent 135b7b5 commit 9fb8843
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/elasticsearch/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ public function all($db = null)
*/
public function one($db = null)
{
$options['size'] = 1;
$result = $this->createCommand($db)->search($options);
$result = $this->createCommand($db)->search(['size' => 1]);
if (empty($result['hits']['hits'])) {
return false;
}
Expand Down

0 comments on commit 9fb8843

Please sign in to comment.