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 {
|
||||
id: "start-application-menu",
|
||||
run: async () => {
|
||||
await applicationMenu.start();
|
||||
run: () => {
|
||||
applicationMenu.start();
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
@ -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,
|
||||
}));
|
||||
|
||||
@ -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();
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@ -14,9 +14,9 @@ const startCatalogSyncInjectable = getInjectable({
|
||||
|
||||
return {
|
||||
id: "start-catalog-sync",
|
||||
run: async () => {
|
||||
run: () => {
|
||||
if (!catalogSyncToRenderer.started) {
|
||||
await catalogSyncToRenderer.start();
|
||||
catalogSyncToRenderer.start();
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@ -14,8 +14,8 @@ const startSyncingThemeFromOperatingSystemInjectable = getInjectable({
|
||||
|
||||
return {
|
||||
id: "start-syncing-theme-from-operating-system",
|
||||
run: async () => {
|
||||
await syncTheme.start();
|
||||
run: () => {
|
||||
syncTheme.start();
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -14,8 +14,8 @@ const startListeningOfChannelsInjectable = getInjectable({
|
||||
|
||||
return {
|
||||
id: "start-listening-of-channels-renderer",
|
||||
run: async () => {
|
||||
await listeningOfChannels.start();
|
||||
run: () => {
|
||||
listeningOfChannels.start();
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user