Remove unnecessart awaits

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-06 09:19:00 -05:00
1 parent 76931f8aa8
commit 6f4ddf72e8
7 files changed
+14 -14

No files matched your search

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