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;