Explorar o código

Make sure exitCode is defined in the show command.

Tom Rochette %!s(int64=7) %!d(string=hai) anos
pai
achega
c3b6c0c85e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Command/ShowCommand.php

+ 1 - 1
src/Composer/Command/ShowCommand.php

@@ -197,11 +197,11 @@ EOT
                 $versions = array($package->getPrettyVersion() => $package->getVersion());
             }
 
+            $exitCode = 0;
             if ($input->getOption('tree')) {
                 $this->displayPackageTree($package, $installedRepo, $repos);
             } else {
                 $latestPackage = null;
-                $exitCode = 0;
                 if ($input->getOption('latest')) {
                     $latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
                 }