1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Merge pull request #1927 from Adduc/patch-2

Remove unused variable $valid from ConfigValidator::validate
This commit is contained in:
Jordi Boggiano 2013-05-24 00:44:34 -07:00
commit 921e03c62a

View file

@ -49,7 +49,6 @@ class ConfigValidator
// validate json schema
$laxValid = false;
$valid = false;
try {
$json = new JsonFile($file, new RemoteFilesystem($this->io));
$manifest = $json->read();
@ -57,7 +56,6 @@ class ConfigValidator
$json->validateSchema(JsonFile::LAX_SCHEMA);
$laxValid = true;
$json->validateSchema();
$valid = true;
} catch (JsonValidationException $e) {
foreach ($e->getErrors() as $message) {
if ($laxValid) {