Skip to content

Commit

Permalink
Issue deployd#16 - fixed eslint issue | one-var rule
Browse files Browse the repository at this point in the history
  • Loading branch information
saloni.kathuria committed Oct 26, 2019
1 parent 5b49469 commit 6a45eb8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/cli/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ const createServer = require('./createserver');
* Start the server
*/
const start = function (file) {
let port = program.port,
host = program.host || '127.0.0.1',
dbname = program.dbname || '-deployd',
mongoPort = program.mongoPort ? Number(program.mongoPort) : '27017',
env = program.environment || process.env.DPD_ENV || 'development',
retries = 0,
credentials = {};
let port = program.port;
const host = program.host || '127.0.0.1';
const dbname = program.dbname || '-deployd';
const mongoPort = program.mongoPort ? Number(program.mongoPort) : '27017';
const env = program.environment || process.env.DPD_ENV || 'development';
let retries = 0;
const credentials = {};


if (!port) {
Expand Down Expand Up @@ -93,9 +93,9 @@ const start = function (file) {

if (program.host) {
if (program.auth) {
const auth = program.auth.split(':'),
username = auth[0],
password = auth[1];
const auth = program.auth.split(':');
const username = auth[0];
const password = auth[1];
setCredentials(username, password);
} else if (program.username || program.password) {
setCredentials(program.username, program.password);
Expand Down

0 comments on commit 6a45eb8

Please sign in to comment.