diff options
author | David Robillard <d@drobilla.net> | 2022-05-27 12:33:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-27 12:54:10 -0400 |
commit | 47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd (patch) | |
tree | b797d52ba17734b9b8132d1d084b4f7d7281be14 /src/jalv_console.c | |
parent | 9a1ff05280a1b18f486d1a564ac3da77741d6bb8 (diff) | |
download | jalv-47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd.tar.gz jalv-47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd.tar.bz2 jalv-47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd.zip |
Avoid "else" after "return"
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r-- | src/jalv_console.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c index a08f08a..13eb330 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -1,5 +1,5 @@ /* - Copyright 2007-2016 David Robillard <d@drobilla.net> + Copyright 2007-2022 David Robillard <d@drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -76,7 +76,9 @@ jalv_init(int* argc, char*** argv, JalvOptions* opts) for (; a < *argc && (*argv)[a][0] == '-'; ++a) { if ((*argv)[a][1] == 'h') { return print_usage((*argv)[0], true); - } else if ((*argv)[a][1] == 's') { + } + + if ((*argv)[a][1] == 's') { opts->show_ui = true; } else if ((*argv)[a][1] == 'p') { opts->print_controls = true; |