lib: remove excess indentation

In anticipation of stricter linting for indentation, remove instances of
extra indentation that will be flagged by the new rules.

PR-URL: https://github.com/nodejs/node/pull/14090
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rich Trott 2017-07-05 09:21:40 -07:00
parent 49d13a17b1
commit 0d22858d67
16 changed files with 51 additions and 49 deletions

View File

@ -71,8 +71,7 @@ function fatalError(e) {
Error.captureStackTrace(o, fatalError); Error.captureStackTrace(o, fatalError);
process._rawDebug(o.stack); process._rawDebug(o.stack);
} }
if (process.execArgv.some( if (process.execArgv.some((e) => /^--abort[_-]on[_-]uncaught[_-]exception$/.test(e))) {
(e) => /^--abort[_-]on[_-]uncaught[_-]exception$/.test(e))) {
process.abort(); process.abort();
} }
process.exit(1); process.exit(1);

View File

@ -185,7 +185,8 @@ function Stats(
atim_msec, atim_msec,
mtim_msec, mtim_msec,
ctim_msec, ctim_msec,
birthtim_msec) { birthtim_msec
) {
this.dev = dev; this.dev = dev;
this.mode = mode; this.mode = mode;
this.nlink = nlink; this.nlink = nlink;

View File

@ -84,7 +84,8 @@ if (process.binding('config').hasIntl) {
// Code points are derived from: // Code points are derived from:
// http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt // http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt
if (code >= 0x1100 && ( if (
code >= 0x1100 && (
code <= 0x115f || // Hangul Jamo code <= 0x115f || // Hangul Jamo
0x2329 === code || // LEFT-POINTING ANGLE BRACKET 0x2329 === code || // LEFT-POINTING ANGLE BRACKET
0x232a === code || // RIGHT-POINTING ANGLE BRACKET 0x232a === code || // RIGHT-POINTING ANGLE BRACKET
@ -112,7 +113,9 @@ if (process.binding('config').hasIntl) {
// Enclosed Ideographic Supplement // Enclosed Ideographic Supplement
0x1f200 <= code && code <= 0x1f251 || 0x1f200 <= code && code <= 0x1f251 ||
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
0x20000 <= code && code <= 0x3fffd)) { 0x20000 <= code && code <= 0x3fffd
)
) {
return true; return true;
} }

View File

@ -760,8 +760,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'); var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/');
var isRelAbs = ( var isRelAbs = (
relative.host || relative.host || relative.pathname && relative.pathname.charAt(0) === '/'
relative.pathname && relative.pathname.charAt(0) === '/'
); );
var mustEndAbs = (isRelAbs || isSourceAbs || var mustEndAbs = (isRelAbs || isSourceAbs ||
(result.host && relative.pathname)); (result.host && relative.pathname));