Skip to content

Commit c58e1b5

Browse files
committed
cleanup
1 parent c1b39eb commit c58e1b5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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');

src/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const UpdateProvider = ({
293293
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
294294
if (autoMarkSuccess) {
295295
setTimeout(() => {
296-
void markSuccess();
296+
markSuccess();
297297
}, 1000);
298298
}
299299
if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {

0 commit comments

Comments
 (0)