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:
Jon Moss authored and Anna Henningsen committed 2017-11-28 02:39:33 +01:00
1 parent e98da3d030
commit aec9149c1e
1 file changed
+1 -2
+1 -2
View File
@@ -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');