mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Replace unnecessary let with two consts
This commit is contained in:
1 parent
ffa21fe271
commit
ea42644c8f
1 file changed
+3
-3
@@ -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