mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove double 'if' (#17436)
This commit is contained in:
1 parent
65650253cf
commit
d9172dc321
1 file changed
+2
-4
@@ -2099,10 +2099,8 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
if (symbol) {
|
||||
if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
|
||||
return forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);
|
||||
}
|
||||
if (symbol && !isPropertyOrMethodDeclarationSymbol(symbol)) {
|
||||
return forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user