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 <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
ZYSzys authored and targos committed Dec 1, 2019
1 parent a8e40a9 commit 984b3c9
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 984b3c9

Please sign in to comment.