Small style tweak
This commit is contained in:
parent
019a91505f
commit
23f30f6709
|
@ -1059,8 +1059,7 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func)
|
|||
real_context = &cm.get_client(parser.option_value("client")).context();
|
||||
else if (parser.has_option("try-client"))
|
||||
{
|
||||
Client* client = cm.get_client_ifp(parser.option_value("try-client"));
|
||||
if (client)
|
||||
if (Client* client = cm.get_client_ifp(parser.option_value("try-client")))
|
||||
real_context = &client->context();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user