Skip to content

Commit

Permalink
use Object.assign instead of _.merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kirrg001 committed Feb 4, 2018
1 parent 4002815 commit 36f6340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/process-manager.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const every = require('lodash/every');
const merge = require('lodash/merge');
const requiredMethods = [
'start',
'stop',
Expand Down Expand Up @@ -70,7 +69,7 @@ class ProcessManager {
ensureStarted(options) {
const portPolling = require('./utils/port-polling');

options = merge({
options = Object.assign({
stopOnError: true,
port: this.instance.config.get('server.port')
}, options || {});
Expand Down
3 changes: 1 addition & 2 deletions lib/utils/port-polling.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
'use strict';

const net = require('net');
const merge = require('lodash/merge');
const errors = require('../errors');

module.exports = function portPolling(options) {
options = merge({
options = Object.assign({
timeoutInMS: 1000,
maxTries: 20,
delayOnConnectInMS: 3 * 1000,
Expand Down

0 comments on commit 36f6340

Please sign in to comment.