From fa6de7f054feb2da23b9b188438f89b550e1bc9d Mon Sep 17 00:00:00 2001 From: geekreal <42457717+LockingReal@users.noreply.github.com> Date: Fri, 23 Jun 2023 03:07:36 +0800 Subject: [PATCH] http: remove useless ternary in test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/48481 Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca Reviewed-By: Matthew Aitken Reviewed-By: Yagiz Nizipli Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Qingyu Deng --- test/parallel/test-http2-endafterheaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http2-endafterheaders.js b/test/parallel/test-http2-endafterheaders.js index 429ffc3188452d..438caf3be41b78 100644 --- a/test/parallel/test-http2-endafterheaders.js +++ b/test/parallel/test-http2-endafterheaders.js @@ -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());