Commit b023d617 authored by James M Snell's avatar James M Snell
Browse files

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: default avatarRichard Lau <riclau@uk.ibm.com>
parent 9ec87815
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment