Skip to content

Commit d9172dc

Browse files
author
Andy
authored
Remove double 'if' (#17436)
1 parent 6565025 commit d9172dc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,10 +2099,8 @@ namespace ts {
20992099
}
21002100
}
21012101

2102-
if (symbol) {
2103-
if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
2104-
return forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);
2105-
}
2102+
if (symbol && !isPropertyOrMethodDeclarationSymbol(symbol)) {
2103+
return forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);
21062104
}
21072105
}
21082106

0 commit comments

Comments
 (0)