From b846c47360429fedb4924e06dc07ec33eea8274e 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 --- 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,