diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index a104c2612cbe62..118ae87940e4cd 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -361,7 +361,7 @@ Object.defineProperty(CryptoStream.prototype, 'bytesWritten', { CryptoStream.prototype.getPeerCertificate = function(detailed) { if (this.pair.ssl) { return common.translatePeerCertificate( - this.pair.ssl.getPeerCertificate(detailed)); + this.pair.ssl.getPeerCertificate(detailed)); } return null; diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 1973f155f349b0..c435d792e0a2cc 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -641,7 +641,7 @@ TLSSocket.prototype.setSession = function(session) { TLSSocket.prototype.getPeerCertificate = function(detailed) { if (this._handle) { return common.translatePeerCertificate( - this._handle.getPeerCertificate(detailed)); + this._handle.getPeerCertificate(detailed)); } return null; diff --git a/lib/buffer.js b/lib/buffer.js index 398bf95f340514..784ce5348a15e9 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -626,7 +626,7 @@ function slowIndexOf(buffer, val, byteOffset, encoding, dir) { case 'ascii': case 'hex': return binding.indexOfBuffer( - buffer, Buffer.from(val, encoding), byteOffset, encoding, dir); + buffer, Buffer.from(val, encoding), byteOffset, encoding, dir); default: if (loweredCase) { diff --git a/lib/fs.js b/lib/fs.js index 08a7d4b63f0ead..ca95d9d0ba3336 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -148,20 +148,21 @@ function isFd(path) { // Static method to set the stats properties on a Stats object. function Stats( - dev, - mode, - nlink, - uid, - gid, - rdev, - blksize, - ino, - size, - blocks, - atim_msec, - mtim_msec, - ctim_msec, - birthtim_msec) { + dev, + mode, + nlink, + uid, + gid, + rdev, + blksize, + ino, + size, + blocks, + atim_msec, + mtim_msec, + ctim_msec, + birthtim_msec +) { this.dev = dev; this.mode = mode; this.nlink = nlink; diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index af69bb5b289872..36675b225e17c4 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -355,11 +355,11 @@ ChildProcess.prototype.spawn = function(options) { } this.stdin = stdio.length >= 1 && stdio[0].socket !== undefined ? - stdio[0].socket : null; + stdio[0].socket : null; this.stdout = stdio.length >= 2 && stdio[1].socket !== undefined ? - stdio[1].socket : null; + stdio[1].socket : null; this.stderr = stdio.length >= 3 && stdio[2].socket !== undefined ? - stdio[2].socket : null; + stdio[2].socket : null; this.stdio = stdio.map(function(stdio) { return stdio.socket === undefined ? null : stdio.socket; diff --git a/lib/readline.js b/lib/readline.js index 1ebf6a2c43a8a8..96817621d111e2 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -683,12 +683,12 @@ Interface.prototype._moveCursor = function(dx) { var diffWidth; if (diffCursor < 0) { diffWidth = -getStringWidth( - this.line.substring(this.cursor, oldcursor) - ); + this.line.substring(this.cursor, oldcursor) + ); } else if (diffCursor > 0) { diffWidth = getStringWidth( - this.line.substring(this.cursor, oldcursor) - ); + this.line.substring(this.cursor, oldcursor) + ); } exports.moveCursor(this.output, diffWidth, 0); this.prevRows = newPos.rows; diff --git a/lib/tls.js b/lib/tls.js index d8cbd63f751d6c..c2a19d56e5e0e3 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -197,7 +197,7 @@ exports.checkServerIdentity = function checkServerIdentity(host, cert) { if (!valid) { const err = new Error( - `Hostname/IP doesn't match certificate's altnames: "${reason}"`); + `Hostname/IP doesn't match certificate's altnames: "${reason}"`); err.reason = reason; err.host = host; err.cert = cert; diff --git a/lib/url.js b/lib/url.js index cddc4be0e6e480..af96df71f39bdd 100644 --- a/lib/url.js +++ b/lib/url.js @@ -738,8 +738,7 @@ Url.prototype.resolveObject = function(relative) { var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'); var isRelAbs = ( - relative.host || - relative.pathname && relative.pathname.charAt(0) === '/' + relative.host || relative.pathname && relative.pathname.charAt(0) === '/' ); var mustEndAbs = (isRelAbs || isSourceAbs || (result.host && relative.pathname)); @@ -843,8 +842,8 @@ Url.prototype.resolveObject = function(relative) { // then it must NOT get a trailing slash. var last = srcPath.slice(-1)[0]; var hasTrailingSlash = ( - (result.host || relative.host || srcPath.length > 1) && - (last === '.' || last === '..') || last === ''); + (result.host || relative.host || srcPath.length > 1) && + (last === '.' || last === '..') || last === ''); // strip single dots, resolve double dots to parent dir // if the path tries to go above the root, `up` ends up > 0 diff --git a/lib/util.js b/lib/util.js index 635144818d8f63..349186ad48b172 100644 --- a/lib/util.js +++ b/lib/util.js @@ -691,7 +691,7 @@ function formatTypedArray(ctx, value, recurseTimes, visibleKeys, keys) { for (const key of keys) { if (typeof key === 'symbol' || !numbersOnlyRE.test(key)) { output.push( - formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); + formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); } } return output;