Remove double 'if' (#17436)

This commit is contained in:
Andy authored and GitHub committed 2017-07-27 16:49:26 -07:00
1 parent 65650253cf
commit d9172dc321
1 file changed
+2 -4
+2 -4
View File
@@ -2099,10 +2099,8 @@ namespace ts {
}
}
if (symbol) {
if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
return forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);
}
if (symbol && !isPropertyOrMethodDeclarationSymbol(symbol)) {
return forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);
}
}