Skip to content

Commit ea42644

Browse files
author
Andy Hanson
committed
Replace unnecessary let with two consts
1 parent ffa21fe commit ea42644

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/symbolDisplay.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ namespace ts.SymbolDisplay {
296296
}
297297
else {
298298
// Method/function type parameter
299-
let declaration: Node = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
300-
Debug.assert(declaration !== undefined);
301-
declaration = declaration.parent;
299+
const decl = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
300+
Debug.assert(decl !== undefined);
301+
const declaration = decl.parent;
302302

303303
if (declaration) {
304304
if (isFunctionLikeKind(declaration.kind)) {

0 commit comments

Comments
 (0)