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>
v6.x-staging
Yang-Kichang 7 years ago
committed by Myles Borins
parent
commit
892d224955
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 6
      lib/url.js

6
lib/url.js

@ -71,9 +71,9 @@ ParsedQueryString.prototype = Object.create(null);
function urlParse(url, parseQueryString, slashesDenoteHost) { function urlParse(url, parseQueryString, slashesDenoteHost) {
if (url instanceof Url) return url; if (url instanceof Url) return url;
var u = new Url(); var urlObject = new Url();
u.parse(url, parseQueryString, slashesDenoteHost); urlObject.parse(url, parseQueryString, slashesDenoteHost);
return u; return urlObject;
} }
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {

Loading…
Cancel
Save