From bcde849be9f4a4593d99d77cbc1d87ba9fdc27ba Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 7 Jul 2020 11:35:24 -0700 Subject: [PATCH] quic: remove unnecessary bool conversion The argument will always be a boolean already PR-URL: https://github.com/nodejs/node/pull/34247 Reviewed-By: Anna Henningsen --- lib/internal/quic/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/quic/core.js b/lib/internal/quic/core.js index f559e040febd92..8c06d69494279d 100644 --- a/lib/internal/quic/core.js +++ b/lib/internal/quic/core.js @@ -267,7 +267,7 @@ function onSocketClose(err) { // Called by the C++ internals when the server busy state of // the QuicSocket has been changed. function onSocketServerBusy(on) { - this[owner_symbol][kServerBusy](!!on); + this[owner_symbol][kServerBusy](on); } // Called by the C++ internals when a new server QuicSession has been created.