From f86b7c5e7c728153085bf59d2dcfedb2c352819f 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 :) --- 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');