diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index a833735e29..5985d75ca8 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -798,14 +798,13 @@ export default class Component { names.forEach(name => { const scope_owner = scope.find_owner(name); - if (scope_owner !== null) { - if (scope_owner === instance_scope) { - const variable = component.var_lookup.get(name); - variable[deep ? 'mutated' : 'reassigned'] = true; - } - } else if (module_scope && module_scope.has(name)) { + if ( + scope_owner !== null + ? scope_owner === instance_scope + : module_scope && module_scope.has(name) + ) { const variable = component.var_lookup.get(name); - variable[deep ? 'mutated' : 'reassigned'] = true; + variable[deep ? "mutated" : "reassigned"] = true; } }); }