-
Notifications
You must be signed in to change notification settings - Fork 1k
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: replace nil checks with not in conditions #4578
Conversation
this change introduces if the statement does not need to distinguish between false and nil:
by the way, can storage checks return nil now? |
What @Zbizu says is true, please make the change from |
Every time I pull a value from storage, will I have to check to see if it is not null? There is no logic in changing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change what you check on line 16 in login.lua
Pull Request Prelude
Changes Proposed
This commit introduces a refactor to replace nil checks with the use of not in logical conditions, aligning with the preferred style in the codebase. This change improves code readability and consistency throughout the affected sections.