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:
parent
e98da3d030
commit
aec9149c1e
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user