From ac9c52e70fba54ea4e4e6d1c107bcff002b86dfb Mon Sep 17 00:00:00 2001 From: chaoticefx <79575739+chaoticefx@users.noreply.github.com> Date: Thu, 27 Oct 2022 15:52:49 +0800 Subject: [PATCH] Fixed code styling --- packages/server/src/integrations/elasticsearch.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/server/src/integrations/elasticsearch.ts b/packages/server/src/integrations/elasticsearch.ts index 0bd463606f..51e13b37fa 100644 --- a/packages/server/src/integrations/elasticsearch.ts +++ b/packages/server/src/integrations/elasticsearch.ts @@ -105,16 +105,14 @@ class ElasticSearchIntegration implements IntegrationBase { ssl: this.config.ssl ? { rejectUnauthorized: this.config.rejectUnauthorized, - ca: this.config.ca ? this.config.ca : undefined + ca: this.config.ca || undefined, } : undefined, } - if (newConfig.ssl && !newConfig.ssl.ca) - { + if (newConfig.ssl && !newConfig.ssl.ca) { delete newConfig.ssl.ca - } else if(!newConfig.ssl) - { + } else if(!newConfig.ssl) { delete newConfig.ssl } this.client = new Client(newConfig)