mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
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:
committed by
Saúl Ibarra Corretgé
parent
dc24782a2c
commit
e520319af2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user