From eed25f317b5428934f16c4fc5cc2eaa02eb1513b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Wed, 11 Jan 2017 21:35:00 -0300 Subject: [PATCH] [Nostromo] Apply Mess Detector recommendations --- src/Command/BuiltIn/Releases/ListCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {