Skip to content

Commit

Permalink
http: remove duplicate code
Browse files Browse the repository at this point in the history
This line of code has been implemented in the prepareError function.

PR-URL: #39239
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
  • Loading branch information
xiaoxiaojx authored and danielleadams committed Feb 1, 2022
1 parent c65ac72 commit d383904
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,6 @@ function onParserExecuteCommon(server, socket, parser, state, ret, d) {

if (ret instanceof Error) {
prepareError(ret, parser, d);
ret.rawPacket = d || parser.getCurrentBuffer();
debug('parse error', ret);
socketOnError.call(socket, ret);
} else if (parser.incoming && parser.incoming.upgrade) {
Expand Down

0 comments on commit d383904

Please sign in to comment.