Skip to content

Commit

Permalink
remove duplicate codes
Browse files Browse the repository at this point in the history
This line of code has been implemented in the prepareError function
  • Loading branch information
xiaoxiaojx authored and kaiduo committed Nov 10, 2021
1 parent 79d6815 commit 00342b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/_http_server.js
Expand Up @@ -690,7 +690,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 00342b3

Please sign in to comment.