mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
IRCClient: Remove unnecessary temporary variable from connect()
This commit is contained in:
parent
04bc654ae7
commit
ee3056ba11
Notes:
sideshowbarker
2024-07-19 00:48:00 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/ee3056ba119 Pull-request: https://github.com/SerenityOS/serenity/pull/4429
@ -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…
Reference in New Issue
Block a user