From 23f30f6709b0a64940db5185405e5ea09ad093ae Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 3 Jan 2015 17:35:53 +0000 Subject: [PATCH] Small style tweak --- src/commands.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index 82d30840..c4bc5d62 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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(); }