From 1b8417592415ec10bcc338900b2a13ab60fe8402 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 95ce8bcdb4ede8..fded7067b5b3dd 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -2932,7 +2932,6 @@ Object.defineProperty(connect, promisify.custom, { }); function createSecureServer(options, handler) { - assertIsObject(options, 'options'); return new Http2SecureServer(options, handler); } @@ -2941,7 +2940,6 @@ function createServer(options, handler) { handler = options; options = {}; } - assertIsObject(options, 'options'); return new Http2Server(options, handler); }