Skip to content

Commit 5a4b6c4

Browse files
maclover7MylesBorins
authored andcommitted
http: do not assign intermediate variable
No need for binding, it's only used in the next line to declare more variables :) PR-URL: #17335 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 5756d67 commit 5a4b6c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/_http_common.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
'use strict';
2323

24-
const binding = process.binding('http_parser');
25-
const { methods, HTTPParser } = binding;
24+
const { methods, HTTPParser } = process.binding('http_parser');
2625

2726
const FreeList = require('internal/freelist');
2827
const { ondrain } = require('internal/http');

0 commit comments

Comments
 (0)