Skip to content

Commit

Permalink
fix(test): remove useless ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
LockingReal committed Jun 17, 2023
1 parent 0d725d6 commit c80dcf5
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 c80dcf5

Please sign in to comment.