Skip to content

Commit 6124a9e

Browse files
committed
change var to let
1 parent 327f006 commit 6124a9e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

vscode-plugin/src/config/defaultValues.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
33
*/
44

5-
import * as os from 'os';
65
import * as path from 'path';
76
import * as vs from 'vscode';
87
import * as vsUtils from '../utils/vscodeUtils';
@@ -18,8 +17,8 @@ export class DefaultConfigValues {
1817
public static readonly POSSIBLE_TEST_DIR_NAMES = ['test'];
1918

2019
public static getDefaultHost(): string {
21-
var host = Prefs.getGlobalHost();
22-
let sftHost = vsUtils.getFromSftpConfig("host");
20+
let host = Prefs.getGlobalHost();
21+
const sftHost = vsUtils.getFromSftpConfig("host");
2322
if (sftHost && isIP(sftHost)) {
2423
host = sftHost;
2524
}
@@ -31,9 +30,9 @@ export class DefaultConfigValues {
3130
}
3231

3332
public static getDefaultRemotePath(): string {
34-
var remotePath = ""
33+
let remotePath = "";
3534
if (Prefs.isRemoteScenario()) {
36-
let sftpRemotePath = vsUtils.getFromSftpConfig("remotePath");
35+
const sftpRemotePath = vsUtils.getFromSftpConfig("remotePath");
3736
if (sftpRemotePath) {
3837
remotePath = sftpRemotePath;
3938
}

0 commit comments

Comments
 (0)