Skip to content

Commit

Permalink
Improve output
Browse files Browse the repository at this point in the history
- Remove unnecesary break lines
- Do not show updated packages list when it comes empty
  • Loading branch information
omarlopesino committed Jan 17, 2024
1 parent 6529e6b commit f5fe146
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/UpdaterCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,11 @@ protected function updatePackage(string $package) {

}

$this->output->writeln("\nUpdated packages:");
$updated_packages = trim($this->runCommand('composer-lock-diff')->getOutput());
$this->output->writeln($updated_packages . "\n");
if (!empty($updated_packages)) {
$this->output->writeln("Updated packages:");
$this->output->writeln($updated_packages);
}

$commit_message = $this->calculateModuleUpdateCommitMessage($package);

Expand Down

0 comments on commit f5fe146

Please sign in to comment.