Remove dead code (#965)

This commit is contained in:
Gregor Jasny 2021-06-18 13:20:34 +02:00 committed by GitHub
parent d903053faf
commit 6b9ffc8bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5737,11 +5737,9 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req,
// Body
if (req.body.empty()) {
return write_content_with_provider(strm, req, error);
} else {
return detail::write_data(strm, req.body.data(), req.body.size());
}
return true;
return detail::write_data(strm, req.body.data(), req.body.size());
}
inline std::unique_ptr<Response> ClientImpl::send_with_content_provider(