From 21d42baa8ef13d98f29ac74e28565dfefe1e2217 Mon Sep 17 00:00:00 2001 From: yangyingchao Date: Sat, 6 Jul 2024 08:16:45 +0800 Subject: [PATCH] (temperature) fix clang-tidy lint . --- src/modules/temperature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/temperature.cpp b/src/modules/temperature.cpp index 88910982..30287763 100644 --- a/src/modules/temperature.cpp +++ b/src/modules/temperature.cpp @@ -80,10 +80,10 @@ auto waybar::modules::Temperature::update() -> void { if (format.empty()) { event_box_.hide(); return; - } else { - event_box_.show(); } + event_box_.show(); + auto max_temp = config_["critical-threshold"].isInt() ? config_["critical-threshold"].asInt() : 0; label_.set_markup(fmt::format(fmt::runtime(format), fmt::arg("temperatureC", temperature_c), fmt::arg("temperatureF", temperature_f),