lib: move isLegalPort to validators, refactor
isLegalPort was used multiple places in the same way -- to validate the port and throw if necessary. Moved into internal/validators. PR-URL: https://github.com/nodejs/node/pull/31851 Reviewed-By:Richard Lau <riclau@uk.ibm.com>
parent
9ec87815
Please register or sign in to comment