Skip to content

Commit 2d7e03f

Browse files
maclover7gibfahn
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 3a9a5d8 commit 2d7e03f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/_http_common.js

Lines changed: 1 addition & 2 deletions
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)