mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
IRCClient: Remove unnecessary temporary variable from connect()
This commit is contained in:
parent
04bc654ae7
commit
ee3056ba11
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue