Return early in case a call to the wrapped repo is unnecessary
parent
096b507050
commit
a7ad186c89
|
@ -116,6 +116,10 @@ class FilterRepository implements RepositoryInterface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$packageMap) {
|
||||||
|
return array('namesFound' => array(), 'packages' => array());
|
||||||
|
}
|
||||||
|
|
||||||
$result = $this->repo->loadPackages($packageMap, $acceptableStabilities, $stabilityFlags);
|
$result = $this->repo->loadPackages($packageMap, $acceptableStabilities, $stabilityFlags);
|
||||||
if (!$this->canonical) {
|
if (!$this->canonical) {
|
||||||
$result['namesFound'] = array();
|
$result['namesFound'] = array();
|
||||||
|
|
Loading…
Reference in New Issue