1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove unnecessart awaits

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-05 13:23:11 -05:00
parent 76931f8aa8
commit 6f4ddf72e8
7 changed files with 14 additions and 14 deletions

View File

@ -16,8 +16,8 @@ const startApplicationMenuInjectable = getInjectable({
return { return {
id: "start-application-menu", id: "start-application-menu",
run: async () => { run: () => {
await applicationMenu.start(); applicationMenu.start();
}, },
}; };
}, },

View File

@ -7,7 +7,7 @@ import periodicalCheckForUpdatesInjectable from "./periodical-check-for-updates.
import { getGlobalOverride } from "../../../../../common/test-utils/get-global-override"; import { getGlobalOverride } from "../../../../../common/test-utils/get-global-override";
export default getGlobalOverride(periodicalCheckForUpdatesInjectable, () => ({ export default getGlobalOverride(periodicalCheckForUpdatesInjectable, () => ({
start: async () => {}, start: () => {},
stop: async () => {}, stop: () => {},
started: false, started: false,
})); }));

View File

@ -16,9 +16,9 @@ const startCheckingForUpdatesInjectable = getInjectable({
return { return {
id: "start-checking-for-updates", id: "start-checking-for-updates",
run: async () => { run: () => {
if (updatingIsEnabled && !periodicalCheckForUpdates.started) { if (updatingIsEnabled && !periodicalCheckForUpdates.started) {
await periodicalCheckForUpdates.start(); periodicalCheckForUpdates.start();
} }
}, },
}; };

View File

@ -14,9 +14,9 @@ const startCatalogSyncInjectable = getInjectable({
return { return {
id: "start-catalog-sync", id: "start-catalog-sync",
run: async () => { run: () => {
if (!catalogSyncToRenderer.started) { if (!catalogSyncToRenderer.started) {
await catalogSyncToRenderer.start(); catalogSyncToRenderer.start();
} }
}, },
}; };

View File

@ -14,8 +14,8 @@ const startSyncingThemeFromOperatingSystemInjectable = getInjectable({
return { return {
id: "start-syncing-theme-from-operating-system", id: "start-syncing-theme-from-operating-system",
run: async () => { run: () => {
await syncTheme.start(); syncTheme.start();
}, },
}; };
}, },

View File

@ -15,8 +15,8 @@ const startReactiveTrayMenuIconInjectable = getInjectable({
return { return {
id: "start-reactive-tray-menu-icon", id: "start-reactive-tray-menu-icon",
run: async () => { run: () => {
await reactiveTrayMenuIcon.start(); reactiveTrayMenuIcon.start();
}, },
runAfter: di.inject(startTrayInjectable), runAfter: di.inject(startTrayInjectable),

View File

@ -14,8 +14,8 @@ const startListeningOfChannelsInjectable = getInjectable({
return { return {
id: "start-listening-of-channels-renderer", id: "start-listening-of-channels-renderer",
run: async () => { run: () => {
await listeningOfChannels.start(); listeningOfChannels.start();
}, },
}; };
}, },