Skip to content

Commit c80dcf5

Browse files
committed
fix(test): remove useless ternary operator
1 parent 0d725d6 commit c80dcf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http2-endafterheaders.js

+1-1
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)