fix indentation

This commit is contained in:
arnaud-ma
2025-07-19 03:23:32 +02:00
parent e45883088d
commit 64ed2cd970

View File

@ -71,12 +71,12 @@ void Workspaces::createWorkspace(Json::Value const &workspace_data,
// avoid recreating existing workspaces // avoid recreating existing workspaces
auto workspace = auto workspace =
std::ranges::find_if(m_workspaces, [&](std::unique_ptr<Workspace> const &w) { std::ranges::find_if(m_workspaces, [&](std::unique_ptr<Workspace> const &w) {
if (workspaceId > 0) { if (workspaceId > 0) {
return w->id() == workspaceId; return w->id() == workspaceId;
} }
return (workspaceName.starts_with("special:") && workspaceName.substr(8) == w->name()) || return (workspaceName.starts_with("special:") && workspaceName.substr(8) == w->name()) ||
workspaceName == w->name(); workspaceName == w->name();
}); });
if (workspace != m_workspaces.end()) { if (workspace != m_workspaces.end()) {
// don't recreate workspace, but update persistency if necessary // don't recreate workspace, but update persistency if necessary