Skip to content

Commit

Permalink
Remove tautology: send_buffer was called on channel so it must be non…
Browse files Browse the repository at this point in the history
…-null. (#3370)
  • Loading branch information
clemahieu committed Jul 7, 2021
1 parent e137494 commit 1551215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/transport/tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void nano::transport::tcp_channels::start_tcp (nano::endpoint const & endpoint_a
channel->send_buffer (bytes, [node_w, channel, endpoint_a, receive_buffer, callback_a] (boost::system::error_code const & ec, size_t size_a) {
if (auto node_l = node_w.lock ())
{
if (!ec && channel)
if (!ec)
{
node_l->network.tcp_channels.start_tcp_receive_node_id (channel, endpoint_a, receive_buffer, callback_a);
}
Expand Down

0 comments on commit 1551215

Please sign in to comment.