Skip to content
Permalink
Browse files

http2: remove duplicated assertIsObject

PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
ZYSzys authored and MylesBorins committed Nov 19, 2019
1 parent 6da56e9 commit 13f65d1f16cbe2a541ea740c7adce9a80ad2354d
Showing with 0 additions and 2 deletions.
  1. +0 −2 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);
}

0 comments on commit 13f65d1

Please sign in to comment.
You can’t perform that action at this time.