소스 검색

Clean ups

Jordi Boggiano 5 년 전
부모
커밋
ee09b75be3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/Composer/Command/RequireCommand.php

+ 1 - 2
src/Composer/Command/RequireCommand.php

@@ -283,7 +283,6 @@ EOT
             ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
             ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
             ->setPreferStable($input->getOption('prefer-stable'))
             ->setPreferStable($input->getOption('prefer-stable'))
             ->setPreferLowest($input->getOption('prefer-lowest'))
             ->setPreferLowest($input->getOption('prefer-lowest'))
-            ->setDryRun($input->getOption('dry-run'))
         ;
         ;
 
 
         // if no lock is present, or the file is brand new, we do not do a
         // if no lock is present, or the file is brand new, we do not do a
@@ -293,7 +292,7 @@ EOT
         }
         }
 
 
         $status = $install->run();
         $status = $install->run();
-        if ($status !== 0 || $input->getOption('dry-run')) {
+        if ($status !== 0) {
             $this->revertComposerFile(false);
             $this->revertComposerFile(false);
         }
         }