From 7d55b8199960d92ec2ea6fe6b168674b3bb4005b Mon Sep 17 00:00:00 2001 From: Yang-Kichang Date: Fri, 22 Sep 2017 15:37:01 +0900 Subject: [PATCH] url: change variable name to be more descriptive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15551 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Timothy Gu Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater --- lib/url.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/url.js b/lib/url.js index 887f5c29ce..b1e0ff8da5 100644 --- a/lib/url.js +++ b/lib/url.js @@ -94,9 +94,9 @@ const querystring = require('querystring'); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url instanceof Url) return url; - var u = new Url(); - u.parse(url, parseQueryString, slashesDenoteHost); - return u; + var urlObject = new Url(); + urlObject.parse(url, parseQueryString, slashesDenoteHost); + return urlObject; } Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {