Skip to content

Commit

Permalink
src: fix readability/braces cpplint warnings
Browse files Browse the repository at this point in the history
PR-URL: #7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
bnoordhuis authored and Myles Borins committed Jul 14, 2016
1 parent c8f78a2 commit 16f2497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
}
};


Expand Down
4 changes: 2 additions & 2 deletions src/node_http_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 16f2497

Please sign in to comment.