src: fix readability/braces cpplint warnings · nodejs/node@7fe758d · GitHub
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

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/cares_wrap.cc

Lines changed: 2 additions & 2 deletions

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

0 commit comments

Comments
 (0)