File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 22 * Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
33 */
44
5- import * as os from 'os' ;
65import * as path from 'path' ;
76import * as vs from 'vscode' ;
87import * 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 }
You can’t perform that action at this time.
0 commit comments