Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fe758d

Browse filesBrowse 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
Copy full SHA for 7fe758d

File tree

Expand file treeCollapse file tree

4 files changed

+10
-10
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-10
lines changed
Open diff view settings
Collapse file

‎src/cares_wrap.cc‎

Copy file name to clipboardExpand all lines: src/cares_wrap.cc
+2-2Lines 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

Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
+5-5Lines 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
Collapse file

‎src/node_http_parser.cc‎

Copy file name to clipboardExpand all lines: src/node_http_parser.cc
+2-2Lines 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];
Collapse file

‎src/node_watchdog.cc‎

Copy file name to clipboardExpand all lines: src/node_watchdog.cc
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.