mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Early return when a package was already marked to be kept
This commit is contained in:
parent
7ee44e6461
commit
8179d1ea33
1 changed files with 5 additions and 0 deletions
|
@ -340,6 +340,11 @@ class PoolOptimizer
|
|||
*/
|
||||
private function keepPackage(BasePackage $package, $identicalDefinitionsPerPackage, $packageIdenticalDefinitionLookup)
|
||||
{
|
||||
// Already marked to keep
|
||||
if (!isset($this->packagesToRemove[$package->id])) {
|
||||
return;
|
||||
}
|
||||
|
||||
unset($this->packagesToRemove[$package->id]);
|
||||
|
||||
if ($package instanceof AliasPackage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue