Simplify code
parent
c95b4d05fd
commit
2976bd82b0
|
@ -214,8 +214,7 @@ EOT
|
||||||
// force update
|
// force update
|
||||||
$newPackage = $composer->getRepositoryManager()->findPackage($package->getName(), $package->getVersion());
|
$newPackage = $composer->getRepositoryManager()->findPackage($package->getName(), $package->getVersion());
|
||||||
if ($newPackage->getSourceReference() !== $package->getSourceReference()) {
|
if ($newPackage->getSourceReference() !== $package->getSourceReference()) {
|
||||||
$operation = new UpdateOperation($package, $newPackage);
|
$operations[] = new UpdateOperation($package, $newPackage);
|
||||||
$operations[] = $operation;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue