From 77947953f7c9db022bb465bf8c884114be46b817 Mon Sep 17 00:00:00 2001 From: ElderMatt <18527012+ElderMatt@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:28:33 +0200 Subject: [PATCH] fix: lint --- src/operator/keycloak.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/operator/keycloak.ts b/src/operator/keycloak.ts index 7f63843..65141cc 100644 --- a/src/operator/keycloak.ts +++ b/src/operator/keycloak.ts @@ -362,7 +362,9 @@ async function keycloakRealmProviderConfigurer(api: KeycloakApi) { // the api does not offer a list method, and trying to get by id throws an error // which we wan to discard, so we run the next command with an empty errors array console.log('api: ', api) - const existingRealm = await doApiCall([], `Getting realm ${keycloakRealm}`, () => api.realms.realmGet(keycloakRealm)) as RealmRepresentation + const existingRealm = (await doApiCall([], `Getting realm ${keycloakRealm}`, () => + api.realms.realmGet(keycloakRealm), + )) as RealmRepresentation if (existingRealm) { await doApiCall(errors, `Updating realm ${keycloakRealm}`, async () => api.realms.realmPut(keycloakRealm, realmConf),