From 90187ce93679956397b48d6e0cd811eb9331e964 Mon Sep 17 00:00:00 2001 From: Michel Jonathan Schmitz Date: Thu, 25 Jul 2019 11:21:32 +0200 Subject: [PATCH] refactor: remove redundant condition --- src/storage/elasticsearch/elasticsearch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/storage/elasticsearch/elasticsearch.ts b/src/storage/elasticsearch/elasticsearch.ts index 3de5ceff..c7e1ca95 100644 --- a/src/storage/elasticsearch/elasticsearch.ts +++ b/src/storage/elasticsearch/elasticsearch.ts @@ -563,8 +563,7 @@ export class Elasticsearch implements Database { version: this.config.internal.database.version, }; - if (typeof this.config.internal.database.query !== 'undefined' - && this.config.internal.database.query !== undefined) { + if (typeof this.config.internal.database.query !== 'undefined') { esConfig.query = this.config.internal.database .query as ElasticsearchQueryDisMaxConfig | ElasticsearchQueryQueryStringConfig;