Skip to content

Commit

Permalink
redis: remove redundant move (#7520)
Browse files Browse the repository at this point in the history
Description: gcc9 reports the used std::move() as redundant

Risk Level: low
Testing: n/a
Release Notes: N/A
Documentation: N/A

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
  • Loading branch information
Dmitry Rozhkov authored and alyssawilk committed Jul 10, 2019
1 parent 9aa595c commit 165290e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ ClientPtr ClientImpl::create(Upstream::HostConstSharedPtr host, Event::Dispatche
client->connection_->addReadFilter(Network::ReadFilterSharedPtr{new UpstreamReadFilter(*client)});
client->connection_->connect();
client->connection_->noDelay(true);
return std::move(client);
return client;
}

ClientImpl::ClientImpl(Upstream::HostConstSharedPtr host, Event::Dispatcher& dispatcher,
Expand Down

0 comments on commit 165290e

Please sign in to comment.