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

refactor: change inverted conditions #842

Open
wants to merge 1 commit into
base: testnet3
Choose a base branch
from

Conversation

NguyenTuanCanh
Copy link
Contributor

Instead of using inverted conditions, you should strive to write code that is clear and readable by using original (non-negated) conditions and providing meaningful variable and function names. This helps readers of the code better understand the purpose and behavior of the code.
if (skip) {
// Do something when skip
} else {
// Do something when not skip
}

@Arbuzer3000
Copy link

gm

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