Fix linter error (formatting)

This commit is contained in:
herlev 2022-10-17 10:13:37 +02:00
parent 4dfea72db0
commit 33c3ab35a8

View File

@ -45,9 +45,8 @@ uint Window::getActiveWorkspaceID(std::string monitorName) {
assert(cmd.exit_code == 0);
Json::Value json = parser_.parse(cmd.out);
assert(json.isArray());
auto monitor = std::find_if(json.begin(), json.end(), [&](Json::Value monitor){
return monitor["name"] == monitorName;
});
auto monitor = std::find_if(json.begin(), json.end(),
[&](Json::Value monitor) { return monitor["name"] == monitorName; });
assert(monitor != std::end(json));
return (*monitor)["activeWorkspace"]["id"].as<uint>();
}