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

Don't rename when there is nothing to rename. #355

Merged
merged 1 commit into from
Jun 14, 2014

Conversation

dignifiedquire
Copy link
Contributor

When using rename on an optional key and such a key does not exist rename creates a new key with undefined as the value.

This PR ensures that the there is something to rename and only then creates the new key.

@hueniverse hueniverse added the bug label May 28, 2014
@hueniverse hueniverse self-assigned this May 28, 2014
@hueniverse hueniverse added this to the 4.6.1 milestone Jun 14, 2014
hueniverse pushed a commit that referenced this pull request Jun 14, 2014
Don't rename when there is nothing to rename.
@hueniverse hueniverse merged commit 14e2feb into hapijs:master Jun 14, 2014
hueniverse pushed a commit that referenced this pull request Jun 14, 2014
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants