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 16f2497

Browse filesBrowse files
bnoordhuisMyles Borins
authored andcommitted
src: fix readability/braces cpplint warnings
PR-URL: #7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent c8f78a2 commit 16f2497
Copy full SHA for 16f2497

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+4
-4
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
@@ -369,11 +369,11 @@ class QueryWrap : public AsyncWrap {
369369
// Subclasses should implement the appropriate Parse method.
370370
virtual void Parse(unsigned char* buf, int len) {
371371
UNREACHABLE();
372-
};
372+
}
373373

374374
virtual void Parse(struct hostent* host) {
375375
UNREACHABLE();
376-
};
376+
}
377377
};
378378

379379

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
@@ -108,9 +108,9 @@ struct StringPtr {
108108

109109

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.