Another stule tweak

This commit is contained in:
Maxime Coste 2015-01-04 22:34:36 +00:00
parent 23f30f6709
commit ca9baecd4c

View File

@ -152,10 +152,9 @@ Client* ClientManager::get_client_ifp(StringView name)
Client& ClientManager::get_client(StringView name) Client& ClientManager::get_client(StringView name)
{ {
Client* client = get_client_ifp(name); if (Client* client = get_client_ifp(name))
if (not client) return *client;
throw runtime_error("no client named: " + name); throw runtime_error("no client named: " + name);
return *client;
} }
void ClientManager::redraw_clients() const void ClientManager::redraw_clients() const