mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 15:25:35 +00:00
Remove redundant config parsing conditionals
* They are already covered in the last `else` block
This commit is contained in:
parent
434dba31de
commit
6c8b3bb29d
@ -251,10 +251,6 @@ bool config_file_parse(char* filename, PCONFIGURATION config) {
|
||||
config->address = value;
|
||||
} else if (strcmp(key, "sops") == 0) {
|
||||
config->sops = strcmp("true", value) == 0;
|
||||
} else if (strcmp(key, "localaudio") == 0) {
|
||||
config->localaudio = strcmp("true", value) == 0;
|
||||
} else if (strcmp(key, "quitappafter") == 0) {
|
||||
config->quitappafter = strcmp("true", value) == 0;
|
||||
} else {
|
||||
for (int i=0;long_options[i].name != NULL;i++) {
|
||||
if (strcmp(long_options[i].name, key) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user