Skip to content

Commit

Permalink
Merge pull request #83 from ralight/master
Browse files Browse the repository at this point in the history
Remove double negation to satisfy es-lint.
  • Loading branch information
anreinha authored Jan 14, 2022
2 parents 0965e2e + e6c0e85 commit 0a1df71
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 0a1df71

Please sign in to comment.