From 5a4b6c4bc07de353c9726169d0304f4eda26763c Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Sun, 26 Nov 2017 20:23:13 -0500 Subject: [PATCH] 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 Reviewed-By: Yuta Hiroto Reviewed-By: Daniel Bevenius --- lib/_http_common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/_http_common.js b/lib/_http_common.js index 6f5378fbe275e8..ad0dec520d1210 100644 --- a/lib/_http_common.js +++ b/lib/_http_common.js @@ -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');