Merge pull request #4209 from notpeelz/fix-formatting

Fix CI clang-format
This commit is contained in:
Alexis Rouillard
2025-06-22 08:21:38 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@ -272,7 +272,7 @@ void waybar::modules::Network::worker() {
const std::string waybar::modules::Network::getNetworkState() const {
#ifdef WANT_RFKILL
if (rfkill_.getState()) return "disabled";
if (rfkill_.getState()) return "disabled";
#endif
if (ifid_ == -1) {
return "disconnected";

View File

@ -494,7 +494,7 @@ std::string Workspaces::trimWorkspaceName(std::string name) {
return name;
}
bool is_focused_recursive(const Json::Value& node) {
bool is_focused_recursive(const Json::Value &node) {
// If a workspace has a focused container then get_tree will say
// that the workspace itself isn't focused. Therefore we need to
// check if any of its nodes are focused as well.
@ -504,13 +504,13 @@ bool is_focused_recursive(const Json::Value& node) {
return true;
}
for (const auto& child : node["nodes"]) {
for (const auto &child : node["nodes"]) {
if (is_focused_recursive(child)) {
return true;
}
}
for (const auto& child : node["floating_nodes"]) {
for (const auto &child : node["floating_nodes"]) {
if (is_focused_recursive(child)) {
return true;
}