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

Add put if not null to CompoundTag #61

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

urielsalis
Copy link
Contributor

@urielsalis urielsalis commented Apr 9, 2021

Adds a helper method that only puts a tag in a compound tag if its not null

The idea is allow easier chaining while adding new elements (as you dont have to do a null check on each one)

While I was at it I also cleaned up the test a bit, let me know if you want me to revert it

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 78.246% when pulling 52680eb on urielsalis:add-put-if-not-null into f05f37f on Querz:master.

@Querz
Copy link
Owner

Querz commented Apr 27, 2021

lgtm

@Querz Querz merged commit 25e79ed into Querz:master Apr 27, 2021
@urielsalis urielsalis deleted the add-put-if-not-null branch April 27, 2021 08:22
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.

None yet

3 participants