From ee3056ba119b02b9aec5d56ba83acfc4d9478570 Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Wed, 16 Dec 2020 18:14:44 +1100 Subject: [PATCH] IRCClient: Remove unnecessary temporary variable from connect() --- Applications/IRCClient/IRCClient.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Applications/IRCClient/IRCClient.cpp b/Applications/IRCClient/IRCClient.cpp index 49380b68fb..3e5d0abd99 100644 --- a/Applications/IRCClient/IRCClient.cpp +++ b/Applications/IRCClient/IRCClient.cpp @@ -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()