Early return when a package was already marked to be kept
parent
7ee44e6461
commit
8179d1ea33
|
@ -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…
Reference in New Issue