Skip to content

Commit

Permalink
fix(redux/functions): fix typo
Browse files Browse the repository at this point in the history
The intention of the code is (1) to return target if none of the setters lead
to an actual change, (2) to not modify target, and (3) to do it with a 1
copyOnWrite at most.
  • Loading branch information
paweldomas authored and saghul committed Nov 2, 2017
1 parent dc24782 commit e520319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/features/base/redux/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function assign(target: Object, source: Object) {
let t = target;

for (const property in source) { // eslint-disable-line guard-for-in
t = set(t, property, source[property], t === target);
t = _set(t, property, source[property], t === target);
}

return t;
Expand Down

0 comments on commit e520319

Please sign in to comment.