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 Fishrock123 committed Jul 5, 2016
1 parent 6280ccd commit 7fe758d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,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
10 changes: 5 additions & 5 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -575,23 +575,23 @@ Agent::~Agent() {

void Agent::Start(v8::Platform* platform, int port, bool wait) {
impl->Start(platform, port, wait);
};
}

void Agent::Stop() {
impl->Stop();
};
}

bool Agent::IsStarted() {
return impl->IsStarted();
};
}

bool Agent::IsConnected() {
return impl->IsConnected();
};
}

void Agent::WaitForDisconnect() {
impl->WaitForDisconnect();
};
}

} // namespace inspector
} // namespace node
4 changes: 2 additions & 2 deletions src/node_http_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,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
2 changes: 1 addition & 1 deletion src/node_watchdog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ SigintWatchdogHelper::SigintWatchdogHelper()

CHECK_EQ(0, uv_mutex_init(&mutex_));
CHECK_EQ(0, uv_mutex_init(&list_mutex_));
};
}


SigintWatchdogHelper::~SigintWatchdogHelper() {
Expand Down

0 comments on commit 7fe758d

Please sign in to comment.