parsing parameters no longer required

This commit is contained in:
Amateur Audio Dude
2025-09-05 02:50:37 +10:00
committed by GitHub
parent f5c806a75e
commit 1ee11490c0
+1 -1
View File
@@ -334,12 +334,12 @@ class FallbackProviderWav extends AFallbackProvider {
} }
} }
} }
/* Parsing parameters no longer required for Server variable but we'll keep the old code here as a reference
const OptionParser = { const OptionParser = {
"-port": function (txt) { return parseInt(txt, 10); }, "-port": function (txt) { return parseInt(txt, 10); },
"-channels": function (txt) { return parseInt(txt, 10); }, "-channels": function (txt) { return parseInt(txt, 10); },
"-samplerate": function (txt) { return parseInt(txt, 10); } "-samplerate": function (txt) { return parseInt(txt, 10); }
}; };
/* Parsing parameters no longer required for Server variable but we'll keep the old code here as a reference
const Options = {}; const Options = {};
// Parse parameters // Parse parameters
for (let i = 2; i < (process.argv.length - 1); i += 2) { for (let i = 2; i < (process.argv.length - 1); i += 2) {