Skip to content

Commit 394d1b3

Browse files
committed
no need for null-check
1 parent 9e3fe27 commit 394d1b3

File tree

1 file changed

+0
-5
lines changed
  • src/Umbraco.Cms.Integrations.Search.Algolia/Client/src

1 file changed

+0
-5
lines changed

src/Umbraco.Cms.Integrations.Search.Algolia/Client/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,14 @@ import { OpenAPI } from "./api/index.ts";
55
import { manifest as algoliaDashboardManifest } from "./dashboard/manifest.ts";
66
import { manifest as algoliaContextManifest } from "./context/manifest.ts";
77

8-
98
export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
109

1110
extensionRegistry.registerMany([algoliaDashboardManifest, algoliaContextManifest]);
1211

1312
host.consumeContext(UMB_AUTH_CONTEXT, async (instance) => {
14-
15-
if (!instance) return;
16-
1713
const umbOpenApi = instance.getOpenApiConfiguration();
1814
OpenAPI.TOKEN = umbOpenApi.token;
1915
OpenAPI.BASE = umbOpenApi.base;
2016
OpenAPI.WITH_CREDENTIALS = true;
2117
});
22-
2318
};

0 commit comments

Comments
 (0)