1
0
Fork 0

Return early in case a call to the wrapped repo is unnecessary

pull/8760/head
Jordi Boggiano 2020-04-09 17:12:35 +02:00
parent 096b507050
commit a7ad186c89
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@ class FilterRepository implements RepositoryInterface
}
}
if (!$packageMap) {
return array('namesFound' => array(), 'packages' => array());
}
$result = $this->repo->loadPackages($packageMap, $acceptableStabilities, $stabilityFlags);
if (!$this->canonical) {
$result['namesFound'] = array();