From a08967e0088b9f201e96529613c8549241eef6ae Mon Sep 17 00:00:00 2001 From: Viktar Lukashonak Date: Sat, 10 Dec 2022 16:54:26 +0300 Subject: [PATCH] Happy linter --- src/modules/battery.cpp | 3 ++- src/modules/mpd/mpd.cpp | 1 - src/modules/sndio.cpp | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index b7a9cd05..f577e063 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -500,7 +500,8 @@ const std::tuple waybar::modules::Battery::g } else if (status == "Discharging" && total_power_exists && total_energy_exists) { if (total_power != 0) time_remaining = (float)total_energy / total_power; } else if (status == "Charging" && time_to_full_now_exists) { - if (time_to_full_now_exists && (time_to_full_now != 0)) time_remaining = -(float)time_to_full_now / 1000.0f; + if (time_to_full_now_exists && (time_to_full_now != 0)) + time_remaining = -(float)time_to_full_now / 1000.0f; // If we've turned positive it means the battery is past 100% and so just report that as no // time remaining if (time_remaining > 0.0f) time_remaining = 0.0f; diff --git a/src/modules/mpd/mpd.cpp b/src/modules/mpd/mpd.cpp index 2c855d39..401b7594 100644 --- a/src/modules/mpd/mpd.cpp +++ b/src/modules/mpd/mpd.cpp @@ -102,7 +102,6 @@ void waybar::modules::MPD::setLabel() { } else { label_.hide(); } - if (tooltipEnabled()) { std::string tooltip_format; diff --git a/src/modules/sndio.cpp b/src/modules/sndio.cpp index 7a358c18..e6f1bd07 100644 --- a/src/modules/sndio.cpp +++ b/src/modules/sndio.cpp @@ -117,7 +117,6 @@ auto Sndio::update() -> void { label_.set_markup(text); label_.show(); } - ALabel::update(); }