Skip to content

Commit 8cccdd9

Browse files
committed
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: #14403 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]>
1 parent 5c2d1af commit 8cccdd9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/net.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,9 +988,9 @@ Socket.prototype.connect = function() {
988988
if (pipe) {
989989
if (typeof path !== 'string') {
990990
throw new errors.TypeError('ERR_INVALID_ARG_TYPE',
991-
'options.path',
992-
'string',
993-
path);
991+
'options.path',
992+
'string',
993+
path);
994994
}
995995
internalConnect(this, path);
996996
} else {

lib/repl.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,9 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) {
10691069
cmd = { action: cmd };
10701070
} else if (typeof cmd.action !== 'function') {
10711071
throw new errors.TypeError('ERR_INVALID_ARG_TYPE',
1072-
'action', 'function', cmd.action);
1072+
'action',
1073+
'function',
1074+
cmd.action);
10731075
}
10741076
this.commands[keyword] = cmd;
10751077
};

0 commit comments

Comments
 (0)