Skip to content

Commit f72b1ba

Browse files
authored
Replace ts.hasOwnProperty.call(...) with hasProperty(...) (#49410)
1 parent 0d7fbbb commit f72b1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/documentRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ namespace ts {
366366
}
367367
let str = "{";
368368
for (const key in value) {
369-
if (ts.hasOwnProperty.call(value, key)) { // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier
369+
if (hasProperty(value, key)) {
370370
str += `${key}: ${compilerOptionValueToString((value as any)[key])}`;
371371
}
372372
}

0 commit comments

Comments
 (0)