Skip to content

Commit

Permalink
Remove double negation to satisfy es-lint.
Browse files Browse the repository at this point in the history
Error was:
  16:8  error  Redundant double negation  no-extra-boolean-cast
  • Loading branch information
ralight committed Jan 14, 2022
1 parent 0965e2e commit e6c0e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/repository/src/mongoDB/MongoDBConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6c0e85

Please sign in to comment.