Skip to content

Commit

Permalink
more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyLevin committed Jun 11, 2020
1 parent 4db9614 commit 5322493
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/compiler/compile/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,11 @@ export default class Component {
let names: string[] | undefined;

if (node.type === 'AssignmentExpression') {
deep = node.left.type === 'MemberExpression';
names = deep
? [get_object(node.left).name]
: extract_names(node.left);
} else if (node.type === 'UpdateExpression') {
deep = node.left.type === 'MemberExpression';
names = deep
? [get_object(node.left).name]
: extract_names(node.left);
} else if (node.type === 'UpdateExpression') {
deep = node.argument.type === 'MemberExpression';
const { name } = get_object(node.argument);
names = [name];
Expand Down

0 comments on commit 5322493

Please sign in to comment.