From c7102b3073f6961b9540cec8b81cd2bf56fbe3e3 Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Sat, 1 Apr 2023 00:01:34 -0400 Subject: [PATCH] Formatting --- src/compiler/compile/Component.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index c09c1d96df..10cd1d5e91 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -1138,15 +1138,15 @@ export default class Component { } } - if (inserts.length > 0) { - parent[key].splice(index + 1, 0, ...inserts); - } - if (props.length > 0) { - parent[key].splice(index + 1, 0, b`let { ${props} } = $$props;`); - } - if (node.declarations.length == 0) { - parent[key].splice(index, 1); - } + if (inserts.length > 0) { + parent[key].splice(index + 1, 0, ...inserts); + } + if (props.length > 0) { + parent[key].splice(index + 1, 0, b`let { ${props} } = $$props;`); + } + if (node.declarations.length == 0) { + parent[key].splice(index, 1); + } return this.skip(); }