]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove dead code in cpp-httplib
authorGregor Jasny <gregor.jasny@logmein.com>
Mon, 28 Jun 2021 06:46:36 +0000 (08:46 +0200)
committerGregor Jasny <gregor.jasny@logmein.com>
Wed, 7 Jul 2021 21:54:12 +0000 (23:54 +0200)
See: https://github.com/yhirose/cpp-httplib/pull/965

src/third_party/httplib.h

index 13df9a023c28aadfda632fa91f34b783ef2b9111..b18f54e4dae5c570fb88ff047fd45914861ff74c 100644 (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(