Skip to content

Commit

Permalink
removed redundant else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Apr 22, 2013
1 parent 644b688 commit 360e767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Elastica/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public function getParam($name)
{
if (isset($this->_hit[$name])) {
return $this->_hit[$name];
} else {
return array();
}

return array();
}

/**
Expand Down Expand Up @@ -130,9 +130,9 @@ public function getData()
{
if (isset($this->_hit['fields']) && !isset($this->_hit['_source'])) {
return $this->getFields();
} else {
return $this->getSource();
}

return $this->getSource();
}

/**
Expand Down

0 comments on commit 360e767

Please sign in to comment.