From 13f65d1f16cbe2a541ea740c7adce9a80ad2354d Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Tue, 19 Nov 2019 16:05:35 +0800 Subject: [PATCH] http2: remove duplicated assertIsObject PR-URL: https://github.com/nodejs/node/pull/30541 Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- lib/internal/http2/core.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index f4e419b0f88334..9dfb62d27d9e50 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -2954,7 +2954,6 @@ Object.defineProperty(connect, promisify.custom, { }); function createSecureServer(options, handler) { - assertIsObject(options, 'options'); return new Http2SecureServer(options, handler); } @@ -2963,7 +2962,6 @@ function createServer(options, handler) { handler = options; options = {}; } - assertIsObject(options, 'options'); return new Http2Server(options, handler); }