From e3690c3a0712420de5e32c0fa5036657bfa2de22 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Fri, 23 Aug 2019 13:10:32 -0700 Subject: [PATCH] Use the in operator --- src/services/classifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/classifier.ts b/src/services/classifier.ts index 334417ef549..5d9b4924bed 100644 --- a/src/services/classifier.ts +++ b/src/services/classifier.ts @@ -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; }