From e5bf2b7ee8cdcd7e0ba477c2c03499ac73b54df7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 3 Sep 2022 16:20:41 -0600 Subject: [PATCH] canvas: style, using braces with conditional --- libs/canvas/meter.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/canvas/meter.cc b/libs/canvas/meter.cc index 937a1d6895..c532d68609 100644 --- a/libs/canvas/meter.cc +++ b/libs/canvas/meter.cc @@ -691,7 +691,9 @@ Meter::set (float lvl, float peak) float old_level = current_level; float old_peak = current_peak; - if (pixwidth <= 0 || pixheight <=0) return; + if (pixwidth <= 0 || pixheight <=0) { + return; + } if (peak == -1) { if (lvl >= current_peak && lvl > 0) {