mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-06 15:03:14 -05:00
Replace unnecessary let with two consts
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user