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

Use guard pattern #337

Merged
merged 1 commit into from
Apr 10, 2022
Merged

Use guard pattern #337

merged 1 commit into from
Apr 10, 2022

Conversation

aloisdg
Copy link
Contributor

@aloisdg aloisdg commented Apr 9, 2022

Description

See the Wikipedia entry about Guard pattern: https://en.wikipedia.org/wiki/Guard_%28computer_science%29

Note that !(a && b) is (!a || !b) and YesNo can only be Yes or No.

source

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

I did not create any. This is just a small refactoring.

@fauxpark fauxpark requested a review from a team April 9, 2022 21:32
@tzarc tzarc merged commit 19b66b7 into qmk:master Apr 10, 2022
@aloisdg aloisdg deleted the patch-1 branch April 11, 2022 08:26
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.

3 participants