From f57591cf0622c4e1a150663a9a9a7a17eac2edcf Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Fri, 12 May 2023 12:12:37 +0200 Subject: [PATCH] Lint and format src/compiler/compile/render_ssr/handlers/shared/get_const_tags.js --- .../handlers/shared/get_const_tags.js | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/src/compiler/compile/render_ssr/handlers/shared/get_const_tags.js b/src/compiler/compile/render_ssr/handlers/shared/get_const_tags.js index 358154dee1..e7537b73bc 100644 --- a/src/compiler/compile/render_ssr/handlers/shared/get_const_tags.js +++ b/src/compiler/compile/render_ssr/handlers/shared/get_const_tags.js @@ -1,21 +1,16 @@ /** @param {ConstTag[]} const_tags */ export function get_const_tags(const_tags) { - if (const_tags.length === 0) - return null; - return { - type: 'VariableDeclaration', - kind: 'let', - declarations: const_tags.map((const_tag) => { - const assignment = const_tag.node.expression; - return { - type: 'VariableDeclarator', - id: assignment.left, - init: assignment.right - }; - }) - }; + if (const_tags.length === 0) return null; + return { + type: 'VariableDeclaration', + kind: 'let', + declarations: const_tags.map((const_tag) => { + const assignment = const_tag.node.expression; + return { + type: 'VariableDeclarator', + id: assignment.left, + init: assignment.right + }; + }) + }; } - - - -