Skip to content

Commit

Permalink
fix: streamline builder initialization in figma node parser
Browse files Browse the repository at this point in the history
Updated the initialization of the builder variable to be more concise. This change eliminates unnecessary variable reassignment, leading to cleaner and more efficient code.
  • Loading branch information
MiguelFranken committed Aug 21, 2024
1 parent b311401 commit 9bc0826
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/code/src/parsers/figma-node.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9bc0826

Please sign in to comment.