From 8cccdd96f597a62ff1ef1c695211707cad1cddb8 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 20 Jul 2017 14:35:51 -0700 Subject: [PATCH] lib: adjust indentation for impending lint change ESLint 4.x provides stricter indentation linting than previous versions. In preparation for enabling the stricter indentation linting, adjust the indentation of four lines in lib/net.js and lib/repl.js. PR-URL: https://github.com/nodejs/node/pull/14403 Reviewed-By: Anna Henningsen Reviewed-By: Yuta Hiroto Reviewed-By: Colin Ihrig Reviewed-By: Evan Lucas Reviewed-By: Timothy Gu Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Refael Ackermann Reviewed-By: Alexey Orlenko --- lib/net.js | 6 +++--- lib/repl.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/net.js b/lib/net.js index a22754eb302c24..3d7122765bf358 100644 --- a/lib/net.js +++ b/lib/net.js @@ -988,9 +988,9 @@ Socket.prototype.connect = function() { if (pipe) { if (typeof path !== 'string') { throw new errors.TypeError('ERR_INVALID_ARG_TYPE', - 'options.path', - 'string', - path); + 'options.path', + 'string', + path); } internalConnect(this, path); } else { diff --git a/lib/repl.js b/lib/repl.js index 41e630488dcd12..a201ecc62222b6 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1069,7 +1069,9 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) { cmd = { action: cmd }; } else if (typeof cmd.action !== 'function') { throw new errors.TypeError('ERR_INVALID_ARG_TYPE', - 'action', 'function', cmd.action); + 'action', + 'function', + cmd.action); } this.commands[keyword] = cmd; };