Skip to content

Commit 50d350f

Browse files
committed
unnecessary
1 parent b6575cc commit 50d350f

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,10 +1255,7 @@ const common_visitors = {
12551255
binding.kind === 'derived') &&
12561256
// We're only concerned with reads here
12571257
parent.type !== 'AssignmentExpression' &&
1258-
parent.type !== 'UpdateExpression' &&
1259-
(parent.type !== 'MemberExpression' ||
1260-
(context.path.at(-2)?.type !== 'AssignmentExpression' &&
1261-
context.path.at(-2)?.type !== 'UpdateExpression'))
1258+
parent.type !== 'UpdateExpression'
12621259
) {
12631260
w.state_referenced_locally(node);
12641261
}

0 commit comments

Comments
 (0)