diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 41b545468f..ddb215715c 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -369,11 +369,11 @@ class QueryWrap : public AsyncWrap { // Subclasses should implement the appropriate Parse method. virtual void Parse(unsigned char* buf, int len) { UNREACHABLE(); - }; + } virtual void Parse(struct hostent* host) { UNREACHABLE(); - }; + } }; diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index b094ce5f2f..b12dd47706 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -108,9 +108,9 @@ struct StringPtr { void Update(const char* str, size_t size) { - if (str_ == nullptr) + if (str_ == nullptr) { str_ = str; - else if (on_heap_ || str_ + size_ != str) { + } else if (on_heap_ || str_ + size_ != str) { // Non-consecutive input, make a copy on the heap. // TODO(bnoordhuis) Use slab allocation, O(n) allocs is bad. char* s = new char[size_ + size];