formatting
| @@ -398,7 +398,6 @@ async function canResolve(name, useIPv6 = true, useIPv4 = true) { | |||
| 398 | } | 398 | } |
| 399 | } | 399 | } |
| 400 | 400 | ||
| 401 | // If we need to check IPv4 resolution | ||
| 402 | if (useIPv4) { | 401 | if (useIPv4) { |
| 403 | try { | 402 | try { |
| 404 | await dnsPromise.resolve(name); | 403 | await dnsPromise.resolve(name); |
| @@ -768,7 +767,7 @@ const preSetupTasks = async function () { | |||
| 768 | 767 | ||
| 769 | /** | 768 | /** |
| 770 | * Gets the hostname to use for autorun in the browser. | 769 | * Gets the hostname to use for autorun in the browser. |
| 771 | * @returns promise({string} The hostname to use for autorun | 770 | * @returns Promise<string> The hostname to use for autorun |
| 772 | */ | 771 | */ |
| 773 | async function getAutorunHostname(useIPv6, useIPv4) { | 772 | async function getAutorunHostname(useIPv6, useIPv4) { |
| 774 | if (autorunHostname === 'auto') { | 773 | if (autorunHostname === 'auto') { |