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: simplify LibuvStreamWrap::DoWrite · nodejs/node@a122ba5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • stream_wrap.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/stream_wrap.cc‎

Copy file name to clipboardExpand all lines: src/stream_wrap.cc
+6-19Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -359,25 +359,12 @@ int LibuvStreamWrap::DoWrite(WriteWrap* req_wrap,
359359
size_t count,
360360
uv_stream_t* send_handle) {
361361
LibuvWriteWrap* w = static_cast<LibuvWriteWrap*>(req_wrap);
362-
int r;
363-
if (send_handle == nullptr) {
364-
r = w->Dispatch(uv_write, stream(), bufs, count, AfterUvWrite);
365-
} else {
366-
r = w->Dispatch(uv_write2,
367-
stream(),
368-
bufs,
369-
count,
370-
send_handle,
371-
AfterUvWrite);
372-
}
373-
374-
if (!r) {
375-
size_t bytes = 0;
376-
for (size_t i = 0; i < count; i++)
377-
bytes += bufs[i].len;
378-
}
379-
380-
return r;
362+
return w->Dispatch(uv_write2,
363+
stream(),
364+
bufs,
365+
count,
366+
send_handle,
367+
AfterUvWrite);
381368
}
382369

383370

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.