From 2a8ca21fc96fbcdfada75476469e8308ba85571d Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 5 May 2022 08:49:10 -0400 Subject: [PATCH] remove iter use from getLegacyGlobalDiForExtensionApi Signed-off-by: Sebastian Malton --- .../legacy-global-di-for-extension-api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts b/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts index 9f2bc8b13c..74842daed9 100644 --- a/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts +++ b/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts @@ -3,7 +3,6 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import type { DiContainer } from "@ogre-tools/injectable"; -import { iter } from "../../common/utils"; const legacyGlobalDis = new Map(); @@ -24,7 +23,7 @@ export const getLegacyGlobalDiForExtensionApi = () => { throw new Error("Tried to get DI container using legacy globals where there is multiple containers available."); } - const di = iter.first(legacyGlobalDis.values()); + const [di] = [...legacyGlobalDis.values()]; if (!di) { throw new Error("Tried to get DI container using legacy globals where there is no containers available.");