Skip to content

Commit

Permalink
fix: dedup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Jan 5, 2023
1 parent 036a4b3 commit a068fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const disposes = [
if (!preValue[item.line]) {
preValue[item.line] = [ item.ruleId ]
} else {
preValue[item.line] = [ ...preValue[item.line], item.ruleId ]
preValue[item.line] = [ ...new Set([ ...preValue[item.line], item.ruleId ]) ]
}
return preValue
}, {} as Record<number, string[]>) ?? {}
Expand Down

0 comments on commit a068fb4

Please sign in to comment.