Skip to content

Commit e6c0e85

Browse files
committed
Remove double negation to satisfy es-lint.
Error was: 16:8 error Redundant double negation no-extra-boolean-cast
1 parent 0965e2e commit e6c0e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/repository/src/mongoDB/MongoDBConnection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const logger = require('@cedalo/logger').create({ name: 'MongoDBConnection' });
1313

1414
const defaultOptions = {
1515
host: process.env.MONGO_HOST || 'localhost',
16-
port: !!process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT, 10) : 27017,
16+
port: process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT, 10) : 27017,
1717
database: process.env.MONGO_DATABASE || 'test',
1818
username: process.env.MONGO_USERNAME,
1919
password: process.env.MONGO_PASSWORD

0 commit comments

Comments
 (0)