Skip to content

Commit

Permalink
http: remove useless ternary in test
Browse files Browse the repository at this point in the history
PR-URL: #48481
Reviewed-By: Jacob Smith <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matthew Aitken <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Qingyu Deng <[email protected]>
  • Loading branch information
LockingReal authored and pull[bot] committed Aug 27, 2023
1 parent 2897659 commit fa6de7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http2-endafterheaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Countdown = require('../common/countdown');

const server = http2.createServer();
server.on('stream', common.mustCall((stream, headers) => {
const check = headers[':method'] === 'GET' ? true : false;
const check = headers[':method'] === 'GET';
assert.strictEqual(stream.endAfterHeaders, check);
stream.on('data', common.mustNotCall());
stream.on('end', common.mustCall());
Expand Down

0 comments on commit fa6de7f

Please sign in to comment.