Skip to content

Commit

Permalink
fix: Prevent mutation of defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Nov 25, 2017
1 parent 35a22df commit c6a2397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gofer.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function preventComplexMerge(objValue, srcValue) {
return srcValue || objValue;
}

return mergeWith(objValue, srcValue, preventComplexMerge);
return mergeWith({}, objValue, srcValue, preventComplexMerge);
}

Gofer.prototype._prepareOptions =
Expand Down

0 comments on commit c6a2397

Please sign in to comment.