1
0
Fork 0
mirror of synced 2024-06-22 16:10:40 +12:00

Fixed code styling

This commit is contained in:
chaoticefx 2022-10-27 15:52:49 +08:00 committed by GitHub
parent 0744e00814
commit b41cffab7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)