Skip to content

Commit

Permalink
Remove obsolete workaround in tag helper
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Apr 19, 2024
1 parent b65db2a commit abc290d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/knip/src/util/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export const splitTags = (rawTags: string[]) => {
const hasTag = (tags: string[], jsDocTags: Set<string>) => tags.some(tag => jsDocTags.has(`@${tag}`));

export const shouldIgnore = (jsDocTags: Set<string>, 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;
Expand Down

0 comments on commit abc290d

Please sign in to comment.