From 1ecdf800329dd9850771cbf270f451f85cff50b8 Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Fri, 19 Apr 2024 10:39:36 +0200 Subject: [PATCH] Remove obsolete workaround in tag helper --- packages/knip/src/util/tag.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/knip/src/util/tag.ts b/packages/knip/src/util/tag.ts index f0eccdd08..557e5e62f 100644 --- a/packages/knip/src/util/tag.ts +++ b/packages/knip/src/util/tag.ts @@ -15,8 +15,6 @@ export const splitTags = (rawTags: string[]) => { const hasTag = (tags: string[], jsDocTags: Set) => tags.some(tag => jsDocTags.has(`@${tag}`)); export const shouldIgnore = (jsDocTags: Set, tags: Tags) => { - // TODO This should not be necessary (related to de/serialization): - if (Array.isArray(jsDocTags)) jsDocTags = new Set(jsDocTags); const [includeJSDocTags, excludeJSDocTags] = tags; if (includeJSDocTags.length > 0 && !hasTag(includeJSDocTags, jsDocTags)) return true; if (excludeJSDocTags.length > 0 && hasTag(excludeJSDocTags, jsDocTags)) return true;