mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +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();
|
||||
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue