Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Conversation

@inromualdo
Copy link

Add updateLocation function

Copy link
Contributor

@samtstern samtstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@inromualdo thanks for sending this pull request!

It looks like the only difference between setLocation and updateLocation is a call to updateChildren instead of setValue.

Could you reduce the code duplication? Things like checking for a null key and making the Map<> with the update are identical and don't need to be duplicated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants