Skip to content

Commit

Permalink
Avoid unneeded "else".
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 22, 2017
1 parent fe26495 commit 9a47769
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ORM/Association/Loader/SelectLoader.php
Expand Up @@ -163,11 +163,10 @@ protected function _buildQuery($options)
$options['fields'] = [];
}

$query = $finder();
if (isset($options['finder'])) {
list($finderName, $opts) = $this->_extractFinder($options['finder']);
$query = $finder()->find($finderName, $opts);
} else {
$query = $finder();
$query = $query->find($finderName, $opts);
}

$fetchQuery = $query
Expand Down

0 comments on commit 9a47769

Please sign in to comment.