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& 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user