Skip to content

Commit

Permalink
http2: remove duplicated assertIsObject
Browse files Browse the repository at this point in the history
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 21, 2019
1 parent 45e5730 commit 1b84175
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2932,7 +2932,6 @@ Object.defineProperty(connect, promisify.custom, {
});

function createSecureServer(options, handler) {
assertIsObject(options, 'options');
return new Http2SecureServer(options, handler);
}

Expand All @@ -2941,7 +2940,6 @@ function createServer(options, handler) {
handler = options;
options = {};
}
assertIsObject(options, 'options');
return new Http2Server(options, handler);
}

Expand Down

0 comments on commit 1b84175

Please sign in to comment.