mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05: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
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
Reference in a new issue