From 9bc08269a50c0d064175c4b26e1ac62ac8989d4e Mon Sep 17 00:00:00 2001 From: miguelfranken Date: Wed, 21 Aug 2024 15:13:58 +0200 Subject: [PATCH] fix: streamline builder initialization in figma node parser Updated the initialization of the builder variable to be more concise. This change eliminates unnecessary variable reassignment, leading to cleaner and more efficient code. --- packages/code/src/parsers/figma-node.parser.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/code/src/parsers/figma-node.parser.ts b/packages/code/src/parsers/figma-node.parser.ts index 02fefc6..e3a6c40 100644 --- a/packages/code/src/parsers/figma-node.parser.ts +++ b/packages/code/src/parsers/figma-node.parser.ts @@ -63,9 +63,7 @@ class FigmaNodeParser { const mainComponent = await node.getMainComponentAsync() const iconName = mainComponent?.name - let builder: IBuilder - - builder = new Builder(this.config) + const builder: IBuilder = new Builder(this.config) const css = builder.build(node)