Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Do not modify the passed in options object #10

Merged
merged 2 commits into from
Jan 25, 2017
Merged

Conversation

thomaspeklak
Copy link
Contributor

I had a problem with my application tests, because I always used the same object to register this plugin. Digging deeper I noticed that this plugin modifies the passed in arguments.

In my opinion this is not a good practice especially if you do not own this object.

@silas silas merged commit f05aec8 into silas:master Jan 25, 2017
@silas
Copy link
Owner

silas commented Jan 25, 2017

Awesome, thanks for the PR!

I published your change to npm (hapi-bunyan@0.7.0)

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.

None yet

2 participants