diff --git a/src/easy/entities/filter.cpp b/src/easy/entities/filter.cpp index f046597..fb50512 100644 --- a/src/easy/entities/filter.cpp +++ b/src/easy/entities/filter.cpp @@ -52,19 +52,19 @@ const vector Filter::context() const vector vec; std::transform(node.begin(), node.end(), std::back_inserter(vec), [](const Json::Value &value) - { - const string strtype = value.asString(); - if (strtype == "home") - return Easy::context_type::Home; - else if (strtype == "notifications") - return Easy::context_type::Notifications; - else if (strtype == "public") - return Easy::context_type::Public; - else if (strtype == "thread") - return Easy::context_type::Thread; - else - return context_type::Undefined; - }); + { + const string strtype = value.asString(); + if (strtype == "home") + return Easy::context_type::Home; + else if (strtype == "notifications") + return Easy::context_type::Notifications; + else if (strtype == "public") + return Easy::context_type::Public; + else if (strtype == "thread") + return Easy::context_type::Thread; + else + return context_type::Undefined; + }); return vec; }