Remove duplicate condition

This commit is contained in:
Nguyen Xuan Quynh 2018-10-30 16:30:34 +07:00 committed by Nicolas Grekas
parent 9075d2e64e
commit 925842af60
1 changed files with 2 additions and 3 deletions

View File

@ -303,14 +303,13 @@ class Command
$this->definition->addOptions($this->application->getDefinition()->getOptions());
$this->applicationDefinitionMerged = true;
if ($mergeArgs) {
$currentArguments = $this->definition->getArguments();
$this->definition->setArguments($this->application->getDefinition()->getArguments());
$this->definition->addArguments($currentArguments);
}
$this->applicationDefinitionMerged = true;
if ($mergeArgs) {
$this->applicationDefinitionMergedWithArgs = true;
}
}