Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail explicit when default Database values differ #2114

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Aug 1, 2023

Also simplified the code by removing the else and using that as the default outcome.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow it feels 'nicer' that the default outcome is success, so should we negate the if maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it feels nicer, but I didn't like the negation, will implement a fix.

Also simplified the code by removing the else and using that as the
default outcome.
@vmcj vmcj merged commit 5f08b6c into DOMjudge:main Aug 1, 2023
17 checks passed
@vmcj vmcj deleted the unit_test_command branch August 1, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants