GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: fix readability/braces cpplint warnings · nodejs/node@7fe758d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • cares_wrap.cc
    • inspector_agent.cc
    • node_http_parser.cc
    • node_watchdog.cc
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.