Skip to content

Commit

Permalink
Fail explicit when default Database values differ
Browse files Browse the repository at this point in the history
Also simplified the code by removing the else and using that as the
default outcome.
  • Loading branch information
vmcj committed Aug 1, 2023
1 parent 5a59d30 commit b69a414
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
if (empty($messages)) {
$style->success('All default values have the correct type');
} else {
$style->error('Some default values have the wrong type:');
$style->listing($messages);
return Command::SUCCESS;
}

return Command::SUCCESS;
$style->error('Some default values have the wrong type:');
$style->listing($messages);
return Command::FAILURE;
}
}

0 comments on commit b69a414

Please sign in to comment.