Misc syntax improvements

This commit is contained in:
Archi
2023-08-10 21:36:17 +02:00
parent 837e4bde8f
commit c84366f9ba
6 changed files with 13 additions and 4 deletions

View File

@@ -584,8 +584,6 @@ internal static class Program {
bool networkGroupNext = false;
bool pathNext = false;
bool noArgumentValueNext() => !cryptKeyNext && !cryptKeyFileNext && !networkGroupNext && !pathNext;
foreach (string arg in args) {
switch (arg.ToUpperInvariant()) {
case "--CRYPTKEY" when noArgumentValueNext():
@@ -697,6 +695,8 @@ internal static class Program {
}
return true;
bool noArgumentValueNext() => !cryptKeyNext && !cryptKeyFileNext && !networkGroupNext && !pathNext;
}
private static async Task<bool> ParseEnvironmentVariables() {