Skip to content

Commit ae373dc

Browse files
Remove unnecessary this reference
1 parent 7e73b1f commit ae373dc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/LocalBinary.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ function LocalBinary(){
1212
this.is64bits = process.arch == 'x64';
1313

1414
this.getDownloadPath = function () {
15-
var that = this;
16-
if(that.hostOS.match(/darwin|mac os/i)){
15+
if(this.hostOS.match(/darwin|mac os/i)){
1716
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-darwin-x64';
18-
} else if(that.hostOS.match(/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)) {
19-
that.windows = true;
17+
} else if(this.hostOS.match(/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)) {
18+
this.windows = true;
2019
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal.exe';
2120
} else {
22-
if(that.isAlpine()) {
21+
if(this.isAlpine()) {
2322
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-alpine';
2423
} else {
25-
if(that.is64bits)
24+
if(this.is64bits)
2625
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-x64';
2726
else
2827
return 'https://s3.amazonaws.com/bstack-local-prod/BrowserStackLocal-linux-ia32';

0 commit comments

Comments
 (0)