Skip to content

Commit

Permalink
http: do not assign intermediate variable
Browse files Browse the repository at this point in the history
No need for binding, it's only used in the next line to declare more
variables :)

PR-URL: #17335
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
maclover7 authored and gibfahn committed Dec 20, 2017
1 parent f1b4c4b commit 63a3513
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/_http_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 63a3513

Please sign in to comment.