Fixed code styling
This commit is contained in:
parent
1ac362f90c
commit
ac9c52e70f
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue