mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
refactor: remove redundant condition
This commit is contained in:
committed by
Rainer Killinger
parent
0cbf9b26a9
commit
90187ce936
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user