fix(redux/functions): fix typo

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.
This commit is contained in:
paweldomas 2017-10-26 09:50:00 -05:00 committed by Saúl Ibarra Corretgé
parent dc24782a2c
commit e520319af2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export function assign(target: Object, source: Object) {
let t = target; let t = target;
for (const property in source) { // eslint-disable-line guard-for-in 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; return t;