Another stule tweak
This commit is contained in:
parent
23f30f6709
commit
ca9baecd4c
|
@ -152,10 +152,9 @@ Client* ClientManager::get_client_ifp(StringView name)
|
|||
|
||||
Client& ClientManager::get_client(StringView name)
|
||||
{
|
||||
Client* client = get_client_ifp(name);
|
||||
if (not client)
|
||||
throw runtime_error("no client named: " + name);
|
||||
if (Client* client = get_client_ifp(name))
|
||||
return *client;
|
||||
throw runtime_error("no client named: " + name);
|
||||
}
|
||||
|
||||
void ClientManager::redraw_clients() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user