Skip to content

Commit 7fe758d

Browse files
bnoordhuisFishrock123
authored andcommitted
src: fix readability/braces cpplint warnings
PR-URL: #7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 6280ccd commit 7fe758d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/cares_wrap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@ class QueryWrap : public AsyncWrap {
371371
// Subclasses should implement the appropriate Parse method.
372372
virtual void Parse(unsigned char* buf, int len) {
373373
UNREACHABLE();
374-
};
374+
}
375375

376376
virtual void Parse(struct hostent* host) {
377377
UNREACHABLE();
378-
};
378+
}
379379
};
380380

381381

src/inspector_agent.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -575,23 +575,23 @@ Agent::~Agent() {
575575

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

580580
void Agent::Stop() {
581581
impl->Stop();
582-
};
582+
}
583583

584584
bool Agent::IsStarted() {
585585
return impl->IsStarted();
586-
};
586+
}
587587

588588
bool Agent::IsConnected() {
589589
return impl->IsConnected();
590-
};
590+
}
591591

592592
void Agent::WaitForDisconnect() {
593593
impl->WaitForDisconnect();
594-
};
594+
}
595595

596596
} // namespace inspector
597597
} // namespace node

src/node_http_parser.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ struct StringPtr {
107107

108108

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

src/node_watchdog.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ SigintWatchdogHelper::SigintWatchdogHelper()
292292

293293
CHECK_EQ(0, uv_mutex_init(&mutex_));
294294
CHECK_EQ(0, uv_mutex_init(&list_mutex_));
295-
};
295+
}
296296

297297

298298
SigintWatchdogHelper::~SigintWatchdogHelper() {

0 commit comments

Comments
 (0)