aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-scope.lv2/examploscope_ui.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-26 13:27:14 -0400
committerDavid Robillard <d@drobilla.net>2022-05-26 13:27:14 -0400
commitec24b754f1fa81f05b011a444a1dd8d67d066d31 (patch)
tree5f57f787159870d51aa68297ad7f0551ce842dab /plugins/eg-scope.lv2/examploscope_ui.c
parentea4336457f21658cfbc8a282b71d540135ff3d14 (diff)
downloadlv2-ec24b754f1fa81f05b011a444a1dd8d67d066d31.tar.xz
Avoid "else" after "return"
Diffstat (limited to 'plugins/eg-scope.lv2/examploscope_ui.c')
-rw-r--r--plugins/eg-scope.lv2/examploscope_ui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c
index e601843..8a9b588 100644
--- a/plugins/eg-scope.lv2/examploscope_ui.c
+++ b/plugins/eg-scope.lv2/examploscope_ui.c
@@ -261,7 +261,9 @@ on_expose_event(GtkWidget* widget, GdkEventExpose* ev, gpointer data)
for (uint32_t i = start; i < end; ++i) {
if (i == chn->idx) {
continue;
- } else if (i % 2) {
+ }
+
+ if (i % 2) {
cairo_line_to(cr, i - .5, CYPOS(chn->data_min[i]));
cairo_line_to(cr, i - .5, CYPOS(chn->data_max[i]));
++pathlength;