Skip to content

Commit 5d6b385

Browse files
authored
cleanup: remove unused variable assignment (#33917)
The initial value in `text` was being immediately overwritten by the next statement
1 parent bf15eac commit 5d6b385

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/buildProtocol.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ class DeclarationsWalker {
2121

2222
static getExtraDeclarations(typeChecker: ts.TypeChecker, protocolFile: ts.SourceFile): string {
2323
const walker = new DeclarationsWalker(typeChecker, protocolFile);
24-
let text = "declare namespace ts.server.protocol {\n";
2524
walker.visitTypeNodes(protocolFile);
26-
text = walker.text
25+
let text = walker.text
2726
? `declare namespace ts.server.protocol {\n${walker.text}}`
2827
: "";
2928
if (walker.removedTypes) {

0 commit comments

Comments
 (0)