Commit 578af7ad authored by Dominik Charousset's avatar Dominik Charousset

Remove verbose braces

parent ebda4f20
...@@ -323,12 +323,10 @@ connection_state instance::handle(execution_unit* ctx, connection_handle hdl, ...@@ -323,12 +323,10 @@ connection_state instance::handle(execution_unit* ctx, connection_handle hdl,
} }
// Check the application ID. // Check the application ID.
string_list whitelist; string_list whitelist;
if (auto lst = get_if<string_list>(&config(), if (auto ls = get_if<string_list>(&config(), "middleman.app-identifiers"))
"middleman.app-identifiers")) { whitelist = std::move(*ls);
whitelist = std::move(*lst); else
} else {
whitelist.emplace_back(to_string(defaults::middleman::app_identifier)); whitelist.emplace_back(to_string(defaults::middleman::app_identifier));
}
auto i = std::find_first_of(app_ids.begin(), app_ids.end(), auto i = std::find_first_of(app_ids.begin(), app_ids.end(),
whitelist.begin(), whitelist.end()); whitelist.begin(), whitelist.end());
if (i == app_ids.end()) { if (i == app_ids.end()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment