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:
parent
49d13a17b1
commit
0d22858d67
@ -71,8 +71,7 @@ function fatalError(e) {
|
||||
Error.captureStackTrace(o, fatalError);
|
||||
process._rawDebug(o.stack);
|
||||
}
|
||||
if (process.execArgv.some(
|
||||
(e) => /^--abort[_-]on[_-]uncaught[_-]exception$/.test(e))) {
|
||||
if (process.execArgv.some((e) => /^--abort[_-]on[_-]uncaught[_-]exception$/.test(e))) {
|
||||
process.abort();
|
||||
}
|
||||
process.exit(1);
|
||||
|
@ -185,7 +185,8 @@ function Stats(
|
||||
atim_msec,
|
||||
mtim_msec,
|
||||
ctim_msec,
|
||||
birthtim_msec) {
|
||||
birthtim_msec
|
||||
) {
|
||||
this.dev = dev;
|
||||
this.mode = mode;
|
||||
this.nlink = nlink;
|
||||
|
@ -84,7 +84,8 @@ if (process.binding('config').hasIntl) {
|
||||
|
||||
// Code points are derived from:
|
||||
// http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt
|
||||
if (code >= 0x1100 && (
|
||||
if (
|
||||
code >= 0x1100 && (
|
||||
code <= 0x115f || // Hangul Jamo
|
||||
0x2329 === code || // LEFT-POINTING ANGLE BRACKET
|
||||
0x232a === code || // RIGHT-POINTING ANGLE BRACKET
|
||||
@ -112,7 +113,9 @@ if (process.binding('config').hasIntl) {
|
||||
// Enclosed Ideographic Supplement
|
||||
0x1f200 <= code && code <= 0x1f251 ||
|
||||
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
||||
0x20000 <= code && code <= 0x3fffd)) {
|
||||
0x20000 <= code && code <= 0x3fffd
|
||||
)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -760,8 +760,7 @@ Url.prototype.resolveObject = function resolveObject(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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user