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 {
id: "start-application-menu",
run: async () => {
await applicationMenu.start();
run: () => {
applicationMenu.start();
},
};
},

View File

@ -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,
}));

View File

@ -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();
}
},
};

View File

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

View File

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

View File

@ -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),

View File

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