Skip to content

Commit 16f2497

Browse files
bnoordhuisMyles Borins
authored and
Myles Borins
committed
src: fix readability/braces cpplint warnings
PR-URL: #7462 Reviewed-By: Trevor Norris <[email protected]>
1 parent c8f78a2 commit 16f2497

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cares_wrap.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ class QueryWrap : public AsyncWrap {
369369
// Subclasses should implement the appropriate Parse method.
370370
virtual void Parse(unsigned char* buf, int len) {
371371
UNREACHABLE();
372-
};
372+
}
373373

374374
virtual void Parse(struct hostent* host) {
375375
UNREACHABLE();
376-
};
376+
}
377377
};
378378

379379

src/node_http_parser.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ struct StringPtr {
108108

109109

110110
void Update(const char* str, size_t size) {
111-
if (str_ == nullptr)
111+
if (str_ == nullptr) {
112112
str_ = str;
113-
else if (on_heap_ || str_ + size_ != str) {
113+
} else if (on_heap_ || str_ + size_ != str) {
114114
// Non-consecutive input, make a copy on the heap.
115115
// TODO(bnoordhuis) Use slab allocation, O(n) allocs is bad.
116116
char* s = new char[size_ + size];

0 commit comments

Comments
 (0)