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 Dec 17, 2019
1 parent 6da56e9 commit 13f65d1
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 @@ -2954,7 +2954,6 @@ Object.defineProperty(connect, promisify.custom, {
});

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

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

Expand Down

0 comments on commit 13f65d1

Please sign in to comment.