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.

Backport-PR-URL: #14835
PR-URL: #14125
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Aug 16, 2017
1 parent 5e6c711 commit a75ba80
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 @@ -717,11 +717,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 @@ -471,8 +471,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 a75ba80

Please sign in to comment.