Skip to content

Commit

Permalink
remove unnecessary Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Pader committed Jul 26, 2023
1 parent c91227d commit 4f930ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Onyx.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ function applyMerge(existingValue, changes) {
// Object values are merged one after the other
// lodash adds a small overhead so we don't use it here
// eslint-disable-next-line prefer-object-spread, rulesdir/prefer-underscore-method
return _.reduce(changes, (modifiedData, change) => Object.assign({}, fastMerge(modifiedData, change)),
return _.reduce(changes, (modifiedData, change) => fastMerge(modifiedData, change),
existingValue || {});
}

Expand Down

0 comments on commit 4f930ad

Please sign in to comment.