mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 13:48:46 -05:00
cleanup: remove unused variable assignment (#33917)
The initial value in `text` was being immediately overwritten by the next statement
This commit is contained in:
@@ -21,9 +21,8 @@ class DeclarationsWalker {
|
||||
|
||||
static getExtraDeclarations(typeChecker: ts.TypeChecker, protocolFile: ts.SourceFile): string {
|
||||
const walker = new DeclarationsWalker(typeChecker, protocolFile);
|
||||
let text = "declare namespace ts.server.protocol {\n";
|
||||
walker.visitTypeNodes(protocolFile);
|
||||
text = walker.text
|
||||
let text = walker.text
|
||||
? `declare namespace ts.server.protocol {\n${walker.text}}`
|
||||
: "";
|
||||
if (walker.removedTypes) {
|
||||
|
||||
Reference in New Issue
Block a user