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:
parent
76931f8aa8
commit
6f4ddf72e8
@ -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();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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,
|
||||||
}));
|
}));
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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),
|
||||||
|
|||||||
@ -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();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user