Browse Source

[Nostromo] Apply Mess Detector recommendations

pull/1/head
Andrés Montañez 8 years ago
parent
commit
eed25f317b
  1. 3
      src/Command/BuiltIn/Releases/ListCommand.php

3
src/Command/BuiltIn/Releases/ListCommand.php

@ -90,11 +90,10 @@ class ListCommand extends AbstractCommand
throw new RuntimeException(sprintf('Unable to retrieve releases from host "%s"', $host), 80);
}
$releases = [];
if (trim($process->getOutput()) != '') {
$releases = explode(PHP_EOL, trim($process->getOutput()));
rsort($releases);
} else {
$releases = [];
}
if (count($releases) == 0) {

Loading…
Cancel
Save