From ec24b754f1fa81f05b011a444a1dd8d67d066d31 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 May 2022 13:27:14 -0400 Subject: Avoid "else" after "return" --- plugins/eg-scope.lv2/examploscope_ui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/eg-scope.lv2') 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; -- cgit v1.2.1