Skip to content

Commit febd969

Browse files
AVVSaduh95
authored andcommitted
http2: remove duplicate codeblock
PR-URL: #55915 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent efcc5d9 commit febd969

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/node_http2.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,11 +1316,7 @@ int Http2Session::OnDataChunkReceived(nghttp2_session* handle,
13161316
} else {
13171317
memcpy(buf.base, data, avail);
13181318
}
1319-
if (buf.base == nullptr) [[likely]] {
1320-
buf.base = reinterpret_cast<char*>(const_cast<uint8_t*>(data));
1321-
} else {
1322-
memcpy(buf.base, data, avail);
1323-
}
1319+
13241320
data += avail;
13251321
len -= avail;
13261322
stream->EmitRead(avail, buf);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy