From fa8bdd732eb1a82dda06e03576032efb607a70d7 Mon Sep 17 00:00:00 2001 From: ztao Date: Fri, 20 May 2022 16:51:51 +0800 Subject: [PATCH] fix clang-format --- .../ext/http/client/curl/http_operation_curl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h index 88f9e2a489..369b8d8029 100644 --- a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h +++ b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h @@ -17,8 +17,8 @@ # include # include #else -# include # include +# include #endif #include @@ -492,7 +492,7 @@ class HttpOperation #else struct pollfd fds[1]; - ::memset(fds, 0 , sizeof(fds)); + ::memset(fds, 0, sizeof(fds)); fds[0].fd = sockfd; if (for_recv) @@ -506,17 +506,17 @@ class HttpOperation if (poll(fds, 1, timeout_ms) > 0) { - if (for_recv) + if (for_recv) { res = (0 != (fds[0].revents & POLLIN)); - } + } else { res = (0 != (fds[0].revents & POLLOUT)); } } -#endif +#endif return res; }