From 0e7e91f39773f7f7936ce3dcc602091680ea2943 Mon Sep 17 00:00:00 2001 From: ZiJian Liu Date: Thu, 21 Jan 2021 19:40:45 +0800 Subject: [PATCH] quic: remove duplicate checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/37017 Reviewed-By: Colin Ihrig Reviewed-By: Darshan Sen Reviewed-By: Antoine du Hamel Reviewed-By: Juan José Arboleda Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott --- lib/internal/quic/util.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/quic/util.js b/lib/internal/quic/util.js index e2aa07a4560c14..722cc6d74b8397 100644 --- a/lib/internal/quic/util.js +++ b/lib/internal/quic/util.js @@ -495,8 +495,6 @@ function validateQuicStreamOptions(options = {}) { function validateQuicEndpointOptions(options = {}, name = 'options') { validateObject(options, name); - if (options === null || typeof options !== 'object') - throw new ERR_INVALID_ARG_TYPE('options', 'Object', options); const { address, lookup,