Skip to content

Commit 75d642d

Browse files
fix(core): fix for TypeError "this.formats.has is not a function" (#2664)
Co-authored-by: Nauman <[email protected]>
1 parent b5edf5e commit 75d642d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/ruleset/rule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ export class Rule implements IRule {
162162
return false;
163163
}
164164

165-
for (const format of formats) {
166-
if (this.formats.has(format)) {
165+
for (const format of this.formats) {
166+
if (formats.has(format)) {
167167
return true;
168168
}
169169
}

0 commit comments

Comments
 (0)