mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
make linter happy
This commit is contained in:
@ -56,7 +56,7 @@ uint Window::getActiveWorkspaceID(std::string monitorName) {
|
||||
assert(json.isArray());
|
||||
auto monitor = std::find_if(json.begin(), json.end(),
|
||||
[&](Json::Value monitor) { return monitor["name"] == monitorName; });
|
||||
if(monitor == std::end(json)) {
|
||||
if (monitor == std::end(json)) {
|
||||
return 0;
|
||||
}
|
||||
return (*monitor)["activeWorkspace"]["id"].as<uint>();
|
||||
|
Reference in New Issue
Block a user