Replace unnecessary let
with two const
s
This commit is contained in:
parent
ffa21fe271
commit
ea42644c8f
1 changed files with 3 additions and 3 deletions
|
@ -296,9 +296,9 @@ namespace ts.SymbolDisplay {
|
|||
}
|
||||
else {
|
||||
// Method/function type parameter
|
||||
let declaration: Node = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
|
||||
Debug.assert(declaration !== undefined);
|
||||
declaration = declaration.parent;
|
||||
const decl = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
|
||||
Debug.assert(decl !== undefined);
|
||||
const declaration = decl.parent;
|
||||
|
||||
if (declaration) {
|
||||
if (isFunctionLikeKind(declaration.kind)) {
|
||||
|
|
Loading…
Reference in a new issue