mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc,lib,test: capitalize comment sentences
This activates the eslint capitalize comment rule for comments above 50 characters. PR-URL: https://github.com/nodejs/node/pull/24996 Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
@@ -116,11 +116,11 @@ function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
|
||||
function parserOnBody(b, start, len) {
|
||||
const stream = this.incoming;
|
||||
|
||||
// if the stream has already been removed, then drop it.
|
||||
// If the stream has already been removed, then drop it.
|
||||
if (stream === null)
|
||||
return;
|
||||
|
||||
// pretend this was the result of a stream._read call.
|
||||
// Pretend this was the result of a stream._read call.
|
||||
if (len > 0 && !stream._dumped) {
|
||||
var slice = b.slice(start, start + len);
|
||||
var ret = stream.push(slice);
|
||||
|
||||
Reference in New Issue
Block a user