IRCClient: Remove unnecessary temporary variable from connect()

This commit is contained in:
Conrad Pankoff 2020-12-16 18:14:44 +11:00 committed by Andreas Kling
parent 04bc654ae7
commit ee3056ba11
Notes: sideshowbarker 2024-07-19 00:48:00 +09:00

View File

@ -122,10 +122,8 @@ bool IRCClient::connect()
ASSERT_NOT_REACHED();
m_socket->on_connected = [this] { on_socket_connected(); };
bool success = m_socket->connect(m_hostname, m_port);
if (!success)
return false;
return true;
return m_socket->connect(m_hostname, m_port);
}
void IRCClient::receive_from_server()