summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorYang-Kichang <ykcha9@gmail.com>2017-09-22 15:37:01 +0900
committerTobias Nießen <tniessen@tnie.de>2017-09-27 00:39:29 +0200
commit7d55b8199960d92ec2ea6fe6b168674b3bb4005b (patch)
tree56aa5b8386ee91ebf469c470b6162644289a8b20 /lib/url.js
parentcfee1c977867defa2866eebb23a9fabec4003f52 (diff)
downloadandroid-node-v8-7d55b8199960d92ec2ea6fe6b168674b3bb4005b.tar.gz
android-node-v8-7d55b8199960d92ec2ea6fe6b168674b3bb4005b.tar.bz2
android-node-v8-7d55b8199960d92ec2ea6fe6b168674b3bb4005b.zip
url: change variable name to be more descriptive
PR-URL: https://github.com/nodejs/node/pull/15551 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js6
1 files 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) {