Jelajahi Sumber

clang-format

yhirose 2 minggu lalu
induk
melakukan
69ff0fe704
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      httplib.h

+ 1 - 3
httplib.h

@@ -4788,9 +4788,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service,
 
   // Allocate on the heap, so the resolver thread can keep using the data.
   auto state = std::make_shared<GetAddrInfoState>();
-  if (node) {
-    state->node = node;
-  }
+  if (node) { state->node = node; }
   state->service = service;
   state->hints = *hints;