Browse Source

Remove dead code (#965)

Gregor Jasny 4 years ago
parent
commit
6b9ffc8bec
1 changed files with 1 additions and 3 deletions
  1. 1 3
      httplib.h

+ 1 - 3
httplib.h

@@ -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(