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 4a49277 commit 1ecdf80
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 1ecdf80

Please sign in to comment.