diff --git a/src/Command/BuiltIn/Releases/ListCommand.php b/src/Command/BuiltIn/Releases/ListCommand.php index 86b15d0..d4b5d22 100644 --- a/src/Command/BuiltIn/Releases/ListCommand.php +++ b/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) {