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 <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
maclover7 authored and MylesBorins committed Dec 11, 2017
1 parent fdcf0b9 commit 5cd1ef6
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 5cd1ef6

Please sign in to comment.