mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
http: do not assign intermediate variable
No need for binding, it's only used in the next line to declare more variables :) PR-URL: https://github.com/nodejs/node/pull/17335 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
1 parent
e98da3d030
commit
aec9149c1e
1 file changed
+1
-2
+1
-2
@@ -21,8 +21,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const binding = process.binding('http_parser');
|
||||
const { methods, HTTPParser } = binding;
|
||||
const { methods, HTTPParser } = process.binding('http_parser');
|
||||
|
||||
const FreeList = require('internal/freelist');
|
||||
const { ondrain } = require('internal/http');
|
||||
|
||||
Reference in new issue
Block a user