Skip to content

Commit

Permalink
fix(core): fix for TypeError "this.formats.has is not a function" (#2664
Browse files Browse the repository at this point in the history
)

Co-authored-by: Nauman <[email protected]>
  • Loading branch information
riccardo-angelilli and mnaumanali94 authored Sep 13, 2024
1 parent b5edf5e commit 75d642d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/ruleset/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ export class Rule implements IRule {
return false;
}

for (const format of formats) {
if (this.formats.has(format)) {
for (const format of this.formats) {
if (formats.has(format)) {
return true;
}
}
Expand Down

0 comments on commit 75d642d

Please sign in to comment.