Skip to content

Commit 4376222

Browse files
Fix url ref
1 parent 18f9a57 commit 4376222

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/LocalBinary.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var https = require('https'),
22
fs = require('fs'),
33
path = require('path'),
44
os = require('os'),
5+
url = require('url'),
56
util = require('util'),
67
childProcess = require('child_process'),
78
zlib = require('zlib'),
@@ -200,12 +201,12 @@ function LocalBinary(){
200201
};
201202

202203
this.download = function(conf, destParentDir, callback, retries){
203-
this.getDownloadPath(conf, retries, (err, url) => {
204+
this.getDownloadPath(conf, retries, (err, downloadUrl) => {
204205
if(err) {
205206
return console.error('Unable to fetch the source url to download the binary with error: ', err);
206207
}
207208

208-
this.httpPath = url;
209+
this.httpPath = downloadUrl;
209210

210211
var that = this;
211212
if(!this.checkPath(destParentDir))

0 commit comments

Comments
 (0)