Skip to content

Comments

Use guard pattern#337

Merged
tzarc merged 1 commit intoqmk:masterfrom
aloisdg:patch-1
Apr 10, 2022
Merged

Use guard pattern#337
tzarc merged 1 commit intoqmk:masterfrom
aloisdg:patch-1

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