From e6c0e85540058003b970c12d95eb2e161226a6bc Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Fri, 14 Jan 2022 18:50:44 +0000 Subject: [PATCH] Remove double negation to satisfy es-lint. Error was: 16:8 error Redundant double negation no-extra-boolean-cast --- packages/repository/src/mongoDB/MongoDBConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/repository/src/mongoDB/MongoDBConnection.js b/packages/repository/src/mongoDB/MongoDBConnection.js index 3bae5761..8b80f70a 100644 --- a/packages/repository/src/mongoDB/MongoDBConnection.js +++ b/packages/repository/src/mongoDB/MongoDBConnection.js @@ -13,7 +13,7 @@ const logger = require('@cedalo/logger').create({ name: 'MongoDBConnection' }); const defaultOptions = { host: process.env.MONGO_HOST || 'localhost', - port: !!process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT, 10) : 27017, + port: process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT, 10) : 27017, database: process.env.MONGO_DATABASE || 'test', username: process.env.MONGO_USERNAME, password: process.env.MONGO_PASSWORD