Skip to content

Commit 879d666

Browse files
committed
net: remove an unused internal module assertPort
A module `assertPort` in `lib/internal/net.js` is not used anymore. Refs: #11667 PR-URL: #11812 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent d3418b1 commit 879d666

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/internal/net.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ function isLegalPort(port) {
99
return +port === (+port >>> 0) && port <= 0xFFFF;
1010
}
1111

12-
13-
function assertPort(port) {
14-
if (typeof port !== 'undefined' && !isLegalPort(port))
15-
throw new RangeError('"port" argument must be >= 0 and < 65536');
16-
}
17-
1812
module.exports = {
19-
isLegalPort,
20-
assertPort
13+
isLegalPort
2114
};

0 commit comments

Comments
 (0)