Browse Source

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 <anna@addaleax.net>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
v6
Rich Trott 8 years ago
parent
commit
8cccdd96f5
  1. 6
      lib/net.js
  2. 4
      lib/repl.js

6
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 {

4
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;
};

Loading…
Cancel
Save