Remove variable shadowing from the JavaScript files in the src/display/ folder

*This is part of a series of patches that will try to split PR 11566 into smaller chunks, to make reviewing more feasible.*

Once all the code has been fixed, we'll be able to eventually enable the ESLint no-shadow rule; see https://eslint.org/docs/rules/no-shadow
This commit is contained in:
Jonas Jenwald 2020-03-20 23:00:36 +01:00
parent 3cebb430c2
commit 3539a17d2a
6 changed files with 44 additions and 44 deletions

View file

@ -292,13 +292,13 @@ class BaseRangeReader {
}
}
function createRequestOptions(url, headers) {
function createRequestOptions(parsedUrl, headers) {
return {
protocol: url.protocol,
auth: url.auth,
host: url.hostname,
port: url.port,
path: url.path,
protocol: parsedUrl.protocol,
auth: parsedUrl.auth,
host: parsedUrl.hostname,
port: parsedUrl.port,
path: parsedUrl.path,
method: "GET",
headers,
};