From 0d22858d67f5f8f7959a55ceca23adafe12827d5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 5 Jul 2017 09:21:40 -0700 Subject: lib: remove excess indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- lib/url.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/url.js') diff --git a/lib/url.js b/lib/url.js index 70584f8d07..3af9e8f7bf 100644 --- a/lib/url.js +++ b/lib/url.js @@ -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)); @@ -865,8 +864,8 @@ Url.prototype.resolveObject = function resolveObject(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 -- cgit v1.2.3