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(); ASSERT_NOT_REACHED();
m_socket->on_connected = [this] { on_socket_connected(); }; m_socket->on_connected = [this] { on_socket_connected(); };
bool success = m_socket->connect(m_hostname, m_port);
if (!success) return m_socket->connect(m_hostname, m_port);
return false;
return true;
} }
void IRCClient::receive_from_server() void IRCClient::receive_from_server()