Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Sep 27, 2017
1 parent 0db31d3 commit aaaf9c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Repository/NpmRepository.php
Expand Up @@ -138,6 +138,10 @@ protected function putArrayRepositoryConfig(array $packageConfigs, $name, Pool $
/**
* Create the array repository with the asset configs.
*
* A warning message is displayed if the constraint versions of packages
* are broken. These versions are skipped and the plugin hope that other
* versions will be OK.
*
* @param array $packageConfigs The configs of assets package versions
*
* @return CompletePackageInterface[]
Expand All @@ -154,10 +158,7 @@ protected function createArrayRepositoryConfig(array $packageConfigs)
$config = $this->assetRepositoryManager->solveResolutions($config);
$packages[] = $loader->load($config);
} catch (\UnexpectedValueException $exception) {
// Most probably version constraint is broken.
// Skip this version and hope that another one will be OK
$this->io->write("<warning>Skipped {$config['name']} version {$version}: {$exception->getMessage()}</warning>", IOInterface::VERBOSE);
continue;
}
}

Expand Down

0 comments on commit aaaf9c0

Please sign in to comment.