Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2d7e03f

Browse filesBrowse files
maclover7gibfahn
authored andcommitted
http: do not assign intermediate variable
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>
1 parent 3a9a5d8 commit 2d7e03f
Copy full SHA for 2d7e03f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎lib/_http_common.js‎

Copy file name to clipboardExpand all lines: lib/_http_common.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
'use strict';
2323

24-
const binding = process.binding('http_parser');
25-
const { methods, HTTPParser } = binding;
24+
const { methods, HTTPParser } = process.binding('http_parser');
2625

2726
const FreeList = require('internal/freelist');
2827
const { ondrain } = require('internal/http');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.