Skip to content

Commit 776b3ff

Browse files
committed
Code format
1 parent a061b97 commit 776b3ff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

httplib.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,7 +2942,9 @@ inline ssize_t SocketStream::read(char *ptr, size_t size) {
29422942
if (!is_readable()) { return -1; }
29432943

29442944
#ifdef _WIN32
2945-
if (size > static_cast<size_t>(std::numeric_limits<int>::max())) { return -1; }
2945+
if (size > static_cast<size_t>(std::numeric_limits<int>::max())) {
2946+
return -1;
2947+
}
29462948
return recv(sock_, ptr, static_cast<int>(size), 0);
29472949
#else
29482950
return recv(sock_, ptr, size, 0);
@@ -2953,7 +2955,9 @@ inline ssize_t SocketStream::write(const char *ptr, size_t size) {
29532955
if (!is_writable()) { return -1; }
29542956

29552957
#ifdef _WIN32
2956-
if (size > static_cast<size_t>(std::numeric_limits<int>::max())) { return -1; }
2958+
if (size > static_cast<size_t>(std::numeric_limits<int>::max())) {
2959+
return -1;
2960+
}
29572961
return send(sock_, ptr, static_cast<int>(size), 0);
29582962
#else
29592963
return send(sock_, ptr, size, 0);
@@ -3781,7 +3785,8 @@ inline bool Client::send(const Request &req, Response &res) {
37813785
#endif
37823786

37833787
return process_and_close_socket(
3784-
sock_, 1, [&](Stream &strm, bool last_connection, bool &connection_close) {
3788+
sock_, 1,
3789+
[&](Stream &strm, bool last_connection, bool &connection_close) {
37853790
return handle_request(strm, req, res, last_connection,
37863791
connection_close);
37873792
});

0 commit comments

Comments
 (0)