From 7818df6b0f8835e42b150dd4e0028f1f2c4c21d3 Mon Sep 17 00:00:00 2001 From: Shepherd Date: Wed, 5 Jun 2024 21:03:01 -0400 Subject: [PATCH] Fix lint errors --- src/core/executors/ExecutorStore.ts | 2 +- src/shared/services/OneSignalEvent.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/executors/ExecutorStore.ts b/src/core/executors/ExecutorStore.ts index 0353fd215..1ad9cf4c9 100644 --- a/src/core/executors/ExecutorStore.ts +++ b/src/core/executors/ExecutorStore.ts @@ -20,7 +20,7 @@ export class ExecutorStore { // call processDeltaQueue on all executors immediately public forceDeltaQueueProcessingOnAllExecutors(): void { - var didSubscriptionExecutorProcessDeltaQueue = false; + let didSubscriptionExecutorProcessDeltaQueue = false; Object.values(this.store).forEach((executor) => { if ( diff --git a/src/shared/services/OneSignalEvent.ts b/src/shared/services/OneSignalEvent.ts index ae2a82215..ccb51ab51 100755 --- a/src/shared/services/OneSignalEvent.ts +++ b/src/shared/services/OneSignalEvent.ts @@ -29,7 +29,7 @@ export default class OneSignalEvent { static async trigger(eventName: string, data?: any, emitter?: Emitter) { if (!Utils.contains(SILENT_EVENTS, eventName)) { const displayData = data; - let env = Utils.capitalize(SdkEnvironment.getWindowEnv().toString()); + const env = Utils.capitalize(SdkEnvironment.getWindowEnv().toString()); if (displayData || displayData === false) { Log.debug(`(${env}) ยป ${eventName}:`, displayData);