Fix build after merging #35862

This commit is contained in:
Nathan Shively-Sanders
2020-03-30 15:12:16 -07:00
parent 3433434142
commit f17174ceb0
2 changed files with 3 additions and 3 deletions

View File

@@ -31622,7 +31622,7 @@ namespace ts {
const childSymbol = getSymbolAtLocation(childNode);
if (childSymbol && childSymbol === testedFunctionSymbol) {
// If the test was a simple identifier, the above check is sufficient
if (isIdentifier(ifStatement.expression)) {
if (isIdentifier(condExpr)) {
return true;
}
// Otherwise we need to ensure the symbol is called on the same target