Skip to content

Commit 0cacd6c

Browse files
TrottMylesBorins
authored andcommitted
lib: normalize indentation in parentheses
In anticipation of stricter indentation linting, normalize indentation of code in parentheses. Backport-PR-URL: #14835 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 4dabeee commit 0cacd6c

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
@@ -717,11 +717,12 @@ function SecurePair(context, isServer, requestCert, rejectUnauthorized,
717717
this._rejectUnauthorized = rejectUnauthorized ? true : false;
718718
this._requestCert = requestCert ? true : false;
719719

720-
this.ssl = new Connection(this.credentials.context,
721-
this._isServer ? true : false,
722-
this._isServer ? this._requestCert :
723-
options.servername,
724-
this._rejectUnauthorized);
720+
this.ssl = new Connection(
721+
this.credentials.context,
722+
this._isServer ? true : false,
723+
this._isServer ? this._requestCert : options.servername,
724+
this._rejectUnauthorized
725+
);
725726

726727
if (this._isServer) {
727728
this.ssl.onhandshakestart = () => onhandshakestart.call(this);

lib/readline.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,7 @@ function handleGroup(self, group, width, maxColumns) {
471471
var item = group[idx];
472472
self._writeToOutput(item);
473473
if (col < maxColumns - 1) {
474-
for (var s = 0, itemLen = item.length; s < width - itemLen;
475-
s++) {
474+
for (var s = 0, itemLen = item.length; s < width - itemLen; s++) {
476475
self._writeToOutput(' ');
477476
}
478477
}

0 commit comments

Comments
 (0)