diff --git a/src/renderer/app-paths/setup-app-paths.injectable.ts b/src/renderer/app-paths/setup-app-paths.injectable.ts index bcd3cb9624..e6cf30f0dd 100644 --- a/src/renderer/app-paths/setup-app-paths.injectable.ts +++ b/src/renderer/app-paths/setup-app-paths.injectable.ts @@ -3,14 +3,11 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import { getInjectable } from "@ogre-tools/injectable"; -import type { AppPaths } from "../../common/app-paths/app-path-injection-token"; import { appPathsIpcChannel } from "../../common/app-paths/app-path-injection-token"; import getValueFromRegisteredChannelInjectable from "./get-value-from-registered-channel/get-value-from-registered-channel.injectable"; import appPathsStateInjectable from "../../common/app-paths/app-paths-state.injectable"; import { beforeFrameStartsInjectionToken } from "../before-frame-starts/before-frame-starts-injection-token"; -let syncAppPaths: AppPaths; - const setupAppPathsInjectable = getInjectable({ id: "setup-app-paths", @@ -20,7 +17,7 @@ const setupAppPathsInjectable = getInjectable({ getValueFromRegisteredChannelInjectable, ); - syncAppPaths = await getValueFromRegisteredChannel(appPathsIpcChannel); + const syncAppPaths = await getValueFromRegisteredChannel(appPathsIpcChannel); const appPathsState = di.inject(appPathsStateInjectable);