Skip to content
Permalink
Browse files

Avoid unneeded "else".

  • Loading branch information...
ADmad committed Jun 22, 2017
1 parent fe26495 commit 9a4776932f7a938758ba930cd199b7d184c4c479
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/ORM/Association/Loader/SelectLoader.php
@@ -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

0 comments on commit 9a47769

Please sign in to comment.
You can’t perform that action at this time.