@@ -24,16 +24,16 @@ function LocalBinary(){
2424 return this . sourceURL ;
2525 }
2626
27- if ( process . env . BINARY_DOWNLOAD_SOURCE_URL !== undefined && process . env . BINARY_DOWNLOAD_FALLBACK_ENABLED == " true" && this . parentRetries != 4 ) {
27+ if ( process . env . BINARY_DOWNLOAD_SOURCE_URL !== undefined && process . env . BINARY_DOWNLOAD_FALLBACK_ENABLED == ' true' && this . parentRetries != 4 ) {
2828 /* This is triggered from Local.js if there's an error executing the downloaded binary */
2929 return process . env . BINARY_DOWNLOAD_SOURCE_URL ;
3030 }
31-
31+
3232 let cmd , opts ;
3333 cmd = 'node' ;
3434 opts = [ path . join ( __dirname , 'fetchDownloadSourceUrl.js' ) , this . key ] ;
35-
36- if ( retries == 4 || ( process . env . BINARY_DOWNLOAD_FALLBACK_ENABLED == " true" && this . parentRetries == 4 ) ) {
35+
36+ if ( retries == 4 || ( process . env . BINARY_DOWNLOAD_FALLBACK_ENABLED == ' true' && this . parentRetries == 4 ) ) {
3737 opts . push ( true , this . downloadErrorMessage || process . env . BINARY_DOWNLOAD_ERROR_MESSAGE ) ;
3838 } else {
3939 opts . push ( false , null ) ;
@@ -47,7 +47,7 @@ function LocalBinary(){
4747 } else if ( conf . useCaCertificate ) {
4848 opts . push ( undefined , undefined , conf . useCaCertificate ) ;
4949 }
50-
50+
5151 const userAgent = [ packageName , version ] . join ( '/' ) ;
5252 const env = Object . assign ( { 'USER_AGENT' : userAgent } , process . env ) ;
5353 const obj = childProcess . spawnSync ( cmd , opts , { env : env } ) ;
@@ -59,7 +59,7 @@ function LocalBinary(){
5959 let output = Buffer . from ( JSON . parse ( JSON . stringify ( obj . stderr ) ) . data ) . toString ( ) ;
6060 throw ( output ) ;
6161 }
62- }
62+ } ;
6363
6464 this . getDownloadPath = function ( conf , retries ) {
6565 let sourceURL = this . getSourceUrl ( conf , retries ) + '/' ;
@@ -91,8 +91,8 @@ function LocalBinary(){
9191
9292 this . binaryDownloadError = function ( errorMessagePrefix , errorMessage ) {
9393 console . error ( errorMessagePrefix , errorMessage ) ;
94- this . downloadErrorMessage = errorMessagePrefix + " : " + errorMessage ;
95- }
94+ this . downloadErrorMessage = errorMessagePrefix + ' : ' + errorMessage ;
95+ } ;
9696
9797 this . retryBinaryDownload = function ( conf , destParentDir , callback , retries , binaryPath ) {
9898 var that = this ;
@@ -118,7 +118,7 @@ function LocalBinary(){
118118 } catch ( e ) {
119119 return console . error ( `Unable to fetch the source url to download the binary with error: ${ e } ` ) ;
120120 }
121-
121+
122122 console . log ( 'Downloading in sync' ) ;
123123 var that = this ;
124124 if ( ! this . checkPath ( destParentDir ) )
@@ -169,7 +169,7 @@ function LocalBinary(){
169169 } catch ( e ) {
170170 return console . error ( `Unable to fetch the source url to download the binary with error: ${ e } ` ) ;
171171 }
172-
172+
173173 var that = this ;
174174 if ( ! this . checkPath ( destParentDir ) )
175175 fs . mkdirSync ( destParentDir ) ;
0 commit comments