Skip to content

Commit

Permalink
quic: remove duplicate checks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lxxyx authored and targos committed Feb 2, 2021
1 parent 4e757ea commit b533485
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/internal/quic/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b533485

Please sign in to comment.