Skip to content

Commit dfd3ab5

Browse files
07souravkundafrancisf
authored andcommitted
fix linting
1 parent 38e4fd0 commit dfd3ab5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/Local.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ function Local(){
3333

3434
if(typeof options['onlyCommand'] !== 'undefined')
3535
return;
36-
36+
3737
const binaryPath = this.getBinaryPath();
3838
that.binaryPath = binaryPath;
3939
childProcess.exec('echo "" > ' + that.logfile);
4040
that.opcode = 'start';
4141
if(!this.binaryPath){
42-
return new LocalError("Couldn't find binary file");
42+
return new LocalError('Couldn\'t find binary file');
4343
}
4444
try{
4545
const obj = childProcess.spawnSync(that.binaryPath, that.getBinaryArgs());
@@ -69,7 +69,7 @@ function Local(){
6969
return new LocalError(error.toString());
7070
}
7171
}
72-
}
72+
};
7373

7474
this.start = function(options, callback){
7575
this.userArgs = [];

lib/LocalBinary.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ function LocalBinary(){
5757
};
5858

5959
this.downloadSync = function(conf, destParentDir, retries) {
60-
console.log('downloading in sync')
60+
console.log('Downloading in sync');
6161
var that = this;
6262
if(!this.checkPath(destParentDir))
6363
fs.mkdirSync(destParentDir);
64-
64+
6565
var destBinaryName = (this.windows) ? 'BrowserStackLocal.exe' : 'BrowserStackLocal';
6666
var binaryPath = path.join(destParentDir, destBinaryName);
6767

@@ -82,13 +82,13 @@ function LocalBinary(){
8282
cmd = 'wget';
8383
opts = [];
8484
if(conf.proxyHost && conf.proxyPort) {
85-
opts.push('-e', `https_proxy=${conf.proxyHost}:${conf.proxyPort}`, "--no-check-certificate");
85+
opts.push('-e', `https_proxy=${conf.proxyHost}:${conf.proxyPort}`, '--no-check-certificate');
8686
}
8787
opts.push('-O', binaryPath, options.href);
8888
}else{
89-
cmd = `curl`;
89+
cmd = 'curl';
9090
opts = ['-o', binaryPath, options.href];
91-
91+
9292
if(conf.proxyHost && conf.proxyPort) {
9393
opts.push('--proxy', `${conf.proxyHost}:${conf.proxyPort}`);
9494
}
@@ -107,7 +107,7 @@ function LocalBinary(){
107107
return that.retryBinaryDownload(conf, destParentDir, null, retries, binaryPath);
108108
}else{
109109
if(fs.existsSync(binaryPath)){
110-
fs.chmodSync(binaryPath, '0755')
110+
fs.chmodSync(binaryPath, '0755');
111111
return binaryPath;
112112
}else{
113113
console.log('failed to download');
@@ -118,7 +118,7 @@ function LocalBinary(){
118118
console.log('Download failed with error', err);
119119
return that.retryBinaryDownload(conf, destParentDir, null, retries, binaryPath);
120120
}
121-
}
121+
};
122122

123123
this.download = function(conf, destParentDir, callback, retries){
124124
var that = this;

0 commit comments

Comments
 (0)