Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mage-os-ci committed Jun 25, 2024
2 parents 46ca20c + f43763f commit 2832e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function execute(InputInterface $input)
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::ERROR_LOG_FILENAME . '.txt',
self::ERROR_LOG_MESSAGE
);
if (!empty($this->warnings)) {
if (!empty($this->warnings) && !empty($this->errors)) {
$this->output .= "\n " . $this->scriptUtil->printWarningsToFile(
$this->warnings,
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::WARNING_LOG_FILENAME . '.txt',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function execute(InputInterface $input)
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::ERROR_LOG_FILENAME . '.txt',
self::ERROR_LOG_MESSAGE
);
if (!empty($this->warnings)) {
if (!empty($this->warnings) && !empty($this->errors)) {
$this->output .= "\n " . $this->scriptUtil->printWarningsToFile(
$this->warnings,
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::WARNING_LOG_FILENAME . '.txt',
Expand Down

0 comments on commit 2832e14

Please sign in to comment.