From 6f4ddf72e89f909116b6b9f2ad1050d427434f42 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 5 Dec 2022 13:23:11 -0500 Subject: [PATCH] Remove unnecessart awaits Signed-off-by: Sebastian Malton --- .../main/start-application-menu.injectable.ts | 4 ++-- ...odical-check-for-updates.global-override-for-injectable.ts | 4 ++-- .../main/start-checking-for-updates.injectable.ts | 4 ++-- .../catalog-sync-to-renderer/start-catalog-sync.injectable.ts | 4 ++-- .../start-syncing-theme-from-operating-system.injectable.ts | 4 ++-- src/main/tray/menu-icon/start-reactivity.injectable.ts | 4 ++-- .../start-listening-of-channels.injectable.ts | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/features/application-menu/main/start-application-menu.injectable.ts b/src/features/application-menu/main/start-application-menu.injectable.ts index 77fb31cb2a..a3edd09ca1 100644 --- a/src/features/application-menu/main/start-application-menu.injectable.ts +++ b/src/features/application-menu/main/start-application-menu.injectable.ts @@ -16,8 +16,8 @@ const startApplicationMenuInjectable = getInjectable({ return { id: "start-application-menu", - run: async () => { - await applicationMenu.start(); + run: () => { + applicationMenu.start(); }, }; }, diff --git a/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.global-override-for-injectable.ts b/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.global-override-for-injectable.ts index 6c255f8bc3..db86b30e37 100644 --- a/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.global-override-for-injectable.ts +++ b/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.global-override-for-injectable.ts @@ -7,7 +7,7 @@ import periodicalCheckForUpdatesInjectable from "./periodical-check-for-updates. import { getGlobalOverride } from "../../../../../common/test-utils/get-global-override"; export default getGlobalOverride(periodicalCheckForUpdatesInjectable, () => ({ - start: async () => {}, - stop: async () => {}, + start: () => {}, + stop: () => {}, started: false, })); diff --git a/src/features/application-update/child-features/periodical-checking-of-updates/main/start-checking-for-updates.injectable.ts b/src/features/application-update/child-features/periodical-checking-of-updates/main/start-checking-for-updates.injectable.ts index 0292d148df..20b60af2fa 100644 --- a/src/features/application-update/child-features/periodical-checking-of-updates/main/start-checking-for-updates.injectable.ts +++ b/src/features/application-update/child-features/periodical-checking-of-updates/main/start-checking-for-updates.injectable.ts @@ -16,9 +16,9 @@ const startCheckingForUpdatesInjectable = getInjectable({ return { id: "start-checking-for-updates", - run: async () => { + run: () => { if (updatingIsEnabled && !periodicalCheckForUpdates.started) { - await periodicalCheckForUpdates.start(); + periodicalCheckForUpdates.start(); } }, }; diff --git a/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts b/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts index ce06a44281..ebe1f2a1ac 100644 --- a/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts +++ b/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts @@ -14,9 +14,9 @@ const startCatalogSyncInjectable = getInjectable({ return { id: "start-catalog-sync", - run: async () => { + run: () => { if (!catalogSyncToRenderer.started) { - await catalogSyncToRenderer.start(); + catalogSyncToRenderer.start(); } }, }; diff --git a/src/main/theme/sync-theme-from-os/start-syncing-theme-from-operating-system.injectable.ts b/src/main/theme/sync-theme-from-os/start-syncing-theme-from-operating-system.injectable.ts index adc22c4e1e..d5c8f51c76 100644 --- a/src/main/theme/sync-theme-from-os/start-syncing-theme-from-operating-system.injectable.ts +++ b/src/main/theme/sync-theme-from-os/start-syncing-theme-from-operating-system.injectable.ts @@ -14,8 +14,8 @@ const startSyncingThemeFromOperatingSystemInjectable = getInjectable({ return { id: "start-syncing-theme-from-operating-system", - run: async () => { - await syncTheme.start(); + run: () => { + syncTheme.start(); }, }; }, diff --git a/src/main/tray/menu-icon/start-reactivity.injectable.ts b/src/main/tray/menu-icon/start-reactivity.injectable.ts index 19bc9aec20..2c03735904 100644 --- a/src/main/tray/menu-icon/start-reactivity.injectable.ts +++ b/src/main/tray/menu-icon/start-reactivity.injectable.ts @@ -15,8 +15,8 @@ const startReactiveTrayMenuIconInjectable = getInjectable({ return { id: "start-reactive-tray-menu-icon", - run: async () => { - await reactiveTrayMenuIcon.start(); + run: () => { + reactiveTrayMenuIcon.start(); }, runAfter: di.inject(startTrayInjectable), diff --git a/src/renderer/utils/channel/channel-listeners/start-listening-of-channels.injectable.ts b/src/renderer/utils/channel/channel-listeners/start-listening-of-channels.injectable.ts index 18e506cad3..6403b9854a 100644 --- a/src/renderer/utils/channel/channel-listeners/start-listening-of-channels.injectable.ts +++ b/src/renderer/utils/channel/channel-listeners/start-listening-of-channels.injectable.ts @@ -14,8 +14,8 @@ const startListeningOfChannelsInjectable = getInjectable({ return { id: "start-listening-of-channels-renderer", - run: async () => { - await listeningOfChannels.start(); + run: () => { + listeningOfChannels.start(); }, }; },