Skip to content

Commit 3fb917d

Browse files
authored
chore: remove unused check (#9817)
Co-authored-by: Rich Harris <[email protected]>
1 parent 548ffdd commit 3fb917d

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/compiler/phases/2-analyze

1 file changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,10 @@ export function analyze_component(root, options) {
409409
analysis.reactive_statements = order_reactive_statements(analysis.reactive_statements);
410410
}
411411

412-
// warn on any nonstate declarations that are a) reassigned and mutated and b) referenced in the template
412+
// warn on any nonstate declarations that are a) reassigned and b) referenced in the template
413413
for (const scope of [module.scope, instance.scope]) {
414414
outer: for (const [name, binding] of scope.declarations) {
415-
if (binding.kind === 'normal' && binding.reassigned && binding.mutated) {
415+
if (binding.kind === 'normal' && binding.reassigned) {
416416
for (const { path } of binding.references) {
417417
if (path[0].type !== 'Fragment') continue;
418418
for (let i = 1; i < path.length; i += 1) {

0 commit comments

Comments
 (0)