Skip to content

Commit b533485

Browse files
Lxxyxtargos
authored andcommitted
quic: remove duplicate checks
PR-URL: #37017 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 4e757ea commit b533485

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/internal/quic/util.js

-2
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,6 @@ function validateQuicStreamOptions(options = {}) {
495495

496496
function validateQuicEndpointOptions(options = {}, name = 'options') {
497497
validateObject(options, name);
498-
if (options === null || typeof options !== 'object')
499-
throw new ERR_INVALID_ARG_TYPE('options', 'Object', options);
500498
const {
501499
address,
502500
lookup,

0 commit comments

Comments
 (0)