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: simplify logic in items.h #6699

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

tetektoza
Copy link
Contributor

@tetektoza tetektoza commented Oct 13, 2023

Currently some of the "isItem" functions add an unnecessary check of isEmpty which is redundant, because a few lines lower they also check for item type inside the same object.

This patch removes those unnecessary checks.

AJenbo
AJenbo previously approved these changes Oct 14, 2023
Source/items.h Outdated Show resolved Hide resolved
Currently some of the "isItem" functions add an unnecessary check of
isEmpty which is redundant, because a few lines lower they also check
for item type inside the same object.

This patch removes those unnecessary checks.
@AJenbo AJenbo merged commit a387f73 into diasurgical:master Oct 14, 2023
19 checks passed
@tetektoza tetektoza deleted the simplify_logic_in_items_h branch October 14, 2023 00:35
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