From 0cacd6c89eb229a3063a1ae5015baa4e22778683 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 7 Jul 2017 07:31:05 -0700 Subject: [PATCH] lib: normalize indentation in parentheses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In anticipation of stricter indentation linting, normalize indentation of code in parentheses. Backport-PR-URL: https://github.com/nodejs/node/pull/14835 PR-URL: https://github.com/nodejs/node/pull/14125 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Vse Mozhet Byt Reviewed-By: Refael Ackermann Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- lib/_tls_legacy.js | 11 ++++++----- lib/readline.js | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index 118ae87940e4cd..87ccb081eea8ef 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -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); diff --git a/lib/readline.js b/lib/readline.js index 96817621d111e2..05a30f1ece5595 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -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(' '); } }