Skip to content

Commit b81b2ba

Browse files
committed
fix linter issues
1 parent a1da770 commit b81b2ba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/server/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,26 +181,26 @@ namespace ts.server {
181181
this.logger.info("Binding...");
182182
}
183183

184-
let args: string[] = [];
184+
const args: string[] = [];
185185
if (this.logger.loggingEnabled() && this.logger.getLogFileName()) {
186186
args.push("--logFile", combinePaths(getDirectoryPath(normalizeSlashes(this.logger.getLogFileName())), `ti-${process.pid}.log`));
187187
}
188-
let execArgv: string[] = [];
188+
const execArgv: string[] = [];
189189
{
190190
for (const arg of process.execArgv) {
191191
const match = /^--(debug|inspect)(=(\d+))?$/.exec(arg);
192192
if (match) {
193193
// if port is specified - use port + 1
194194
// otherwise pick a default port depending on if 'debug' or 'inspect' and use its value + 1
195-
let currentPort = match[3] !== undefined
195+
const currentPort = match[3] !== undefined
196196
? +match[3]
197197
: match[1] === "debug" ? 5858 : 9229;
198198
execArgv.push(`--${match[1]}=${currentPort + 1}`);
199199
break;
200200
}
201201
}
202202
}
203-
203+
204204
this.installer = childProcess.fork(combinePaths(__dirname, "typingsInstaller.js"), args, { execArgv });
205205
this.installer.on("message", m => this.handleMessage(m));
206206
process.on("exit", () => {

0 commit comments

Comments
 (0)