Skip to content

Commit 48367af

Browse files
committed
Updated per discussion: remove incorrect comment and leave exit code status
1 parent 6deeaea commit 48367af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Catalog/Console/Command/ImagesResizeCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7070
$productIds = $productCollection->getAllIds();
7171
if (!count($productIds)) {
7272
$output->writeln("<info>No product images to resize</info>");
73-
// we must have an exit code higher than zero to indicate something was wrong
74-
return \Magento\Framework\Console\Cli::RETURN_FAILURE;
73+
return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
7574
}
7675

7776
$errorMessage = '';

0 commit comments

Comments
 (0)