-
Notifications
You must be signed in to change notification settings - Fork 11
refactor/snitchmod-nullables-to-optional #53
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
base: master
Are you sure you want to change the base?
refactor/snitchmod-nullables-to-optional #53
Conversation
| store.get().close(); | ||
| store = Optional.empty(); | ||
| } | ||
| if (store == null && server != null) { |
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.
store == null -> store.isPresent()?
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.
Hey,
In the below line(119) I have done this, changed store == null to store.isPresent() and created a new SnitchesStore object and put that in optional, is there anything which I am missing here, please let me know.
Thanks
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.
Should it not be store.isEmpty()?
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.
you are correct, my bad, I have corrected it and pushed the code.
|
I just wanna let you know that while this looks good to me, I'd like to test it before approving. Unfortunately though I don't play much these days, hence the delay. |
no worries, thanks for the reply. |
|
@awoo-civ any update? |
No description provided.