Skip to content

Commit b12b8c2

Browse files
Trottaddaleax
authored andcommitted
lib: normalize indentation in parentheses
In anticipation of stricter indentation linting, normalize indentation of code in parentheses. PR-URL: #14125 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d0e4e2b commit b12b8c2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/_tls_legacy.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -741,11 +741,12 @@ function SecurePair(context, isServer, requestCert, rejectUnauthorized,
741741
this._rejectUnauthorized = rejectUnauthorized ? true : false;
742742
this._requestCert = requestCert ? true : false;
743743

744-
this.ssl = new Connection(this.credentials.context,
745-
this._isServer ? true : false,
746-
this._isServer ? this._requestCert :
747-
options.servername,
748-
this._rejectUnauthorized);
744+
this.ssl = new Connection(
745+
this.credentials.context,
746+
this._isServer ? true : false,
747+
this._isServer ? this._requestCert : options.servername,
748+
this._rejectUnauthorized
749+
);
749750

750751
if (this._isServer) {
751752
this.ssl.onhandshakestart = () => onhandshakestart.call(this);

lib/readline.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,7 @@ function handleGroup(self, group, width, maxColumns) {
511511
var item = group[idx];
512512
self._writeToOutput(item);
513513
if (col < maxColumns - 1) {
514-
for (var s = 0, itemLen = item.length; s < width - itemLen;
515-
s++) {
514+
for (var s = 0, itemLen = item.length; s < width - itemLen; s++) {
516515
self._writeToOutput(' ');
517516
}
518517
}

0 commit comments

Comments
 (0)