Skip to content

Commit

Permalink
Use the in operator
Browse files Browse the repository at this point in the history
  • Loading branch information
amcasey committed Aug 23, 2019
1 parent 00d3726 commit e3690c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/classifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ namespace ts {
// defined in `ts.commentPragmas` would be excessive, but we can avoid
// some obvious false positives (e.g. in XML-like doc comments) by
// checking the element name.
if (!match[3] || !(commentPragmas as any)[match[3]]) {
if (!match[3] || !(match[3] in commentPragmas)) {
return false;
}

Expand Down

0 comments on commit e3690c3

Please sign in to comment.