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 {
|
else {
|
||||||
// Method/function type parameter
|
// Method/function type parameter
|
||||||
let declaration: Node = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
|
const decl = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
|
||||||
Debug.assert(declaration !== undefined);
|
Debug.assert(decl !== undefined);
|
||||||
declaration = declaration.parent;
|
const declaration = decl.parent;
|
||||||
|
|
||||||
if (declaration) {
|
if (declaration) {
|
||||||
if (isFunctionLikeKind(declaration.kind)) {
|
if (isFunctionLikeKind(declaration.kind)) {
|
||||||
|
|
Loading…
Reference in a new issue