Skip to content

Commit 878a63a

Browse files
committed
Remove legacy workaround for false positive linter error
1 parent 9c30811 commit 878a63a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/treetop/Folder.svelte

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,8 @@
133133
{/if}
134134
{#each node.children as child (child.id)}
135135
{#if child.type === Treetop.NodeType.Bookmark}
136-
<!--
137-
Destructure child to work around the following false positive linter
138-
error when calling filterSet.has(child.id):
139-
140-
Unsafe argument of type `any` assigned to a parameter of type `string` @typescript-eslint/no-unsafe-argument
141-
-->
142-
{@const { id, title, url } = child}
143-
{#if !filterActive() || filterSet.has(id)}
144-
<Bookmark nodeId={id} {title} {url} />
136+
{#if !filterActive() || filterSet.has(child.id)}
137+
<Bookmark nodeId={child.id} title={child.title} url={child.url} />
145138
{/if}
146139
{:else if child.type === Treetop.NodeType.Folder}
147140
<Folder nodeId={child.id} />

0 commit comments

Comments
 (0)