Skip to content

Commit e3690c3

Browse files
committed
Use the in operator
1 parent 00d3726 commit e3690c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/classifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ namespace ts {
775775
// defined in `ts.commentPragmas` would be excessive, but we can avoid
776776
// some obvious false positives (e.g. in XML-like doc comments) by
777777
// checking the element name.
778-
if (!match[3] || !(commentPragmas as any)[match[3]]) {
778+
if (!match[3] || !(match[3] in commentPragmas)) {
779779
return false;
780780
}
781781

0 commit comments

Comments
 (0)