Clean-uo blank lines

dfb062af41ba9510b37ff98a6fa385d522bc5c6f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +0 -12Ignore whitespace
server.js+0 -12
@@ -396,7 +396,6 @@ function getSessionCookieAge() {
396396 return undefined;
397397}
398398
399-
400399/**
401400 * Checks the network interfaces to determine the presence of IPv6 and IPv4 addresses.
402401 *
@@ -796,7 +795,6 @@ async function getAutorunHostname(useIPv6, useIPv4) {
796795 }
797796 }
798797
799-
800798 return autorunHostname;
801799}
802800
@@ -1034,11 +1032,9 @@ async function startServer() {
10341032 hasIPv6Any = false,
10351033 hasIPv4Any = false;
10361034
1037-
10381035 if (enableIPv6 === 'auto' || enableIPv4 === 'auto') {
10391036 [hasIPv6Any, hasIPv4Any, hasIPv6Local, hasIPv4Local] = await getHasIP();
10401037
1041-
10421038 hasIPv6 = listen ? hasIPv6Any : hasIPv6Local;
10431039 if (enableIPv6 === 'auto') {
10441040 useIPv6 = hasIPv6;
@@ -1051,7 +1047,6 @@ async function startServer() {
10511047 }
10521048 }
10531049
1054-
10551050 hasIPv4 = listen ? hasIPv4Any : hasIPv4Local;
10561051 if (enableIPv4 === 'auto') {
10571052 useIPv4 = hasIPv4;
@@ -1064,7 +1059,6 @@ async function startServer() {
10641059 }
10651060 }
10661061
1067-
10681062 if (enableIPv6 === 'auto' && enableIPv4 === 'auto') {
10691063 if (!hasIPv6 && !hasIPv4) {
10701064 console.error('Both IPv6 and IPv4 are not detected');
@@ -1076,19 +1070,13 @@ async function startServer() {
10761070 console.log('Neither protocol: ipv6, nor ipv4 are set to auto, skipping detection');
10771071 }
10781072
1079-
1080-
1081-
10821073 if (!useIPv6 && !useIPv4) {
10831074 console.error('Both IPv6 and IPv4 are disabled,\nP.S. you should never see this error, at least at one point it was checked for before this, with the rest of the config options');
10841075 process.exit(1);
10851076 }
10861077
1087-
10881078 const [v6Failed, v4Failed] = await startHTTPorHTTPS(useIPv6, useIPv4);
1089-
10901079 handleServerListenFail(v6Failed, v4Failed, useIPv6, useIPv4);
1091-
10921080 postSetupTasks(v6Failed, v4Failed, useIPv6, useIPv4);
10931081}
10941082