Remove unused variable

main
Elbert Alias 3 years ago
parent 9d88bfbbe2
commit 0962f4ffed

@ -433,7 +433,7 @@ class Site {
promise, promise,
fallback, fallback,
errorMessage = 'Operation took too long to complete', errorMessage = 'Operation took too long to complete',
maxWait = this.options.maxWait maxWait = Math.min(this.options.maxWait, 1000)
) { ) {
let timeout = null let timeout = null
@ -955,14 +955,6 @@ class Site {
// Continue // Continue
} }
let hostname = url
try {
;({ hostname } = new URL(url))
} catch (error) {
// Continue
}
if (error.message.includes('net::ERR_NAME_NOT_RESOLVED')) { if (error.message.includes('net::ERR_NAME_NOT_RESOLVED')) {
const newError = new Error(`Hostname could not be resolved (${url})`) const newError = new Error(`Hostname could not be resolved (${url})`)