Skip to content

Commit 4b07c09

Browse files
committed
chore(linter): fix linter warnings
1 parent 1847099 commit 4b07c09

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/transport/subscription-worker/components/pubnub-clients-manager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,7 @@ export class PubNubClientsManager extends EventTarget {
343343

344344
// Reactivation listener must NOT use the client's abort signal because suspension aborts it.
345345
// Use `once: true` to ensure it's cleaned up after firing.
346-
client.addEventListener(
347-
PubNubClientEvent.Reactivate,
348-
() => this.reactivateClient(client),
349-
{ once: true },
350-
);
346+
client.addEventListener(PubNubClientEvent.Reactivate, () => this.reactivateClient(client), { once: true });
351347
}
352348
// endregion
353349

src/transport/subscription-worker/subscription-worker-middleware.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,14 @@ export class SubscriptionWorkerMiddleware implements Transport {
487487
// Reject all pending callbacks with a retryable (timeout) error to trigger retry/reconnect.
488488
this.callbacks!.forEach(({ reject }, identifier) => {
489489
this.callbacks!.delete(identifier);
490-
reject(new PubNubAPIError('SharedWorker client suspended', StatusCategory.PNTimeoutCategory, 0, new Error('SharedWorker client suspended')));
490+
reject(
491+
new PubNubAPIError(
492+
'SharedWorker client suspended',
493+
StatusCategory.PNTimeoutCategory,
494+
0,
495+
new Error('SharedWorker client suspended'),
496+
),
497+
);
491498
});
492499
} else if (data.type === 'request-process-success' || data.type === 'request-process-error') {
493500
if (this.callbacks!.has(data.identifier)) {

0 commit comments

Comments
 (0)