History

ladspa: fix confusing indentation

GCC (correctly) warns about misleading indentation. Since the if clause ends with a return, the else clause and anything following it are either both executed or not at all. The code is thus correct, if confusing. Improve matters by removing the unnecessary else and fixing the indentation.

Mans Rullgard committed 6 years ago

Commit c972f901 parent b8b161f1 file · +2 −2Browse files

Unified · Split

src/ladspa.c+2−2
@@ -160,8 +160,8 @@ static int sox_ladspa_getopts(sox_effect_t *effp, int argc, char **argv) · 159 unmodified lines
160160 if (l_st->desc == NULL) {
161161 lsx_fail("no plugin called `%s' found", argv[0]);
162162 return SOX_EOF;
163− } else
164− argc--; argv++;
163+ }
164+ argc--; argv++;
165165 }
166166
167167 /* Scan the ports for inputs and outputs */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t