Fixed lint error

This commit is contained in:
Florian Regensburger 2019-07-10 02:35:40 +02:00
parent f273448925
commit 196db5bbcb

View File

@ -99,7 +99,7 @@ namespace ts.codefix {
if (!isBinaryExpression(expression)) {
return false;
}
if (expression.operatorToken.kind === SyntaxKind.CommaToken) {
return every([expression.left, expression.right], expression => expressionCouldBeVariableDeclaration(expression, checker));
}