Skip to content

Commit

Permalink
lib: normalize indentation in parentheses
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and Fishrock123 committed Jul 19, 2017
1 parent 65ab656 commit 4d41502
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions lib/_tls_legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,12 @@ function SecurePair(context, isServer, requestCert, rejectUnauthorized,
this._rejectUnauthorized = rejectUnauthorized ? true : false;
this._requestCert = requestCert ? true : false;

this.ssl = new Connection(this.credentials.context,
this._isServer ? true : false,
this._isServer ? this._requestCert :
options.servername,
this._rejectUnauthorized);
this.ssl = new Connection(
this.credentials.context,
this._isServer ? true : false,
this._isServer ? this._requestCert : options.servername,
this._rejectUnauthorized
);

if (this._isServer) {
this.ssl.onhandshakestart = () => onhandshakestart.call(this);
Expand Down
3 changes: 1 addition & 2 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,7 @@ function handleGroup(self, group, width, maxColumns) {
var item = group[idx];
self._writeToOutput(item);
if (col < maxColumns - 1) {
for (var s = 0, itemLen = item.length; s < width - itemLen;
s++) {
for (var s = 0, itemLen = item.length; s < width - itemLen; s++) {
self._writeToOutput(' ');
}
}
Expand Down

0 comments on commit 4d41502

Please sign in to comment.