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 d47eb73

Browse filesBrowse files
LockingRealruyadorno
authored andcommitted
http: remove useless ternary in test
PR-URL: #48481 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
1 parent e168eab commit d47eb73
Copy full SHA for d47eb73

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-http2-endafterheaders.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-endafterheaders.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Countdown = require('../common/countdown');
99

1010
const server = http2.createServer();
1111
server.on('stream', common.mustCall((stream, headers) => {
12-
const check = headers[':method'] === 'GET' ? true : false;
12+
const check = headers[':method'] === 'GET';
1313
assert.strictEqual(stream.endAfterHeaders, check);
1414
stream.on('data', common.mustNotCall());
1515
stream.on('end', common.mustCall());

0 commit comments

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