url: refactor lib/internal/url.js
This PR addresses some minor nits I meant to leave on a recent pull request but didn't. /cc @TimothyGu
- set an identifier for the separator rather than using multiple instances of the same literal
- consisitent arrow function body formatting
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
url