Browse Source

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>
canary-base
Yang-Kichang 7 years ago
committed by Tobias Nießen
parent
commit
7d55b81999
No known key found for this signature in database GPG Key ID: 718207F8FD156B70
  1. 6
      lib/url.js

6
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) {

Loading…
Cancel
Save