@@ -184,7 +184,7 @@ export class Pushy {
184184 message ?: string ;
185185 data ?: Record < string , string | number > ;
186186 } ) => {
187- log ( type + ' ' + message ) ;
187+ log ( ` ${ type } ${ message } ` ) ;
188188 await this . loggerPromise . promise ;
189189 const { logger = noop , appKey } = this . options ;
190190 const overridePackageVersion = this . options . overridePackageVersion ;
@@ -316,14 +316,14 @@ export class Pushy {
316316 }
317317 await Promise . resolve ( PushyModule . markSuccess ( ) ) ;
318318 sharedState . marked = true ;
319- await this . report ( { type : 'markSuccess' } ) ;
319+ this . report ( { type : 'markSuccess' } ) ;
320320 } ;
321321 switchVersion = async ( hash : string ) => {
322322 if ( ! this . assertDebug ( 'switchVersion()' ) ) {
323323 return ;
324324 }
325325 if ( assertHash ( hash ) && ! sharedState . applyingUpdate ) {
326- log ( ' switchVersion: ' + hash ) ;
326+ log ( ` switchVersion: ${ hash } ` ) ;
327327 sharedState . applyingUpdate = true ;
328328 return PushyModule . reloadUpdate ( { hash } ) ;
329329 }
@@ -334,7 +334,7 @@ export class Pushy {
334334 return ;
335335 }
336336 if ( assertHash ( hash ) ) {
337- log ( ' switchVersionLater: ' + hash ) ;
337+ log ( ` switchVersionLater: ${ hash } ` ) ;
338338 return PushyModule . setNeedUpdate ( { hash } ) ;
339339 }
340340 } ;
@@ -394,7 +394,7 @@ export class Pushy {
394394 try {
395395 this . report ( {
396396 type : 'checking' ,
397- message : this . options . appKey + ': ' + stringifyBody ,
397+ message : ` ${ this . options . appKey } : ${ stringifyBody } ` ,
398398 } ) ;
399399 const respJsonPromise = this . fetchCheckResult ( fetchPayload ) ;
400400 this . lastRespJson = respJsonPromise ;
@@ -495,7 +495,7 @@ export class Pushy {
495495 } ,
496496 } ) ;
497497 let lastError : any ;
498- let errorMessages : string [ ] = [ ] ;
498+ const errorMessages : string [ ] = [ ] ;
499499 const diffUrl = await testUrls ( joinUrls ( paths , diff ) ) ;
500500 if ( diffUrl && ! __DEV__ ) {
501501 log ( 'downloading diff' ) ;
0 commit comments