diff options
author | Ali Hasani <a.hassssani@gmail.com> | 2020-05-23 15:25:15 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 12:55:15 +0200 |
commit | 3b86552d669b44c13f8dcf72e1147f79e9f680c6 (patch) | |
tree | 16888f2543d478e723b164b00be046d5a73c7742 /std/node/url.ts | |
parent | 7f81f02ce794ac14ca25d3505f339cb663499ce6 (diff) |
refactor: remove duplicated code in std/node/module (#5778)
Diffstat (limited to 'std/node/url.ts')
-rw-r--r-- | std/node/url.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/url.ts b/std/node/url.ts index bbf0ff5d0..b0034d02d 100644 --- a/std/node/url.ts +++ b/std/node/url.ts @@ -72,7 +72,7 @@ function getPathFromURLWin(url: URL): string { return `\\\\${hostname}${pathname}`; } else { // Otherwise, it's a local path that requires a drive letter - const letter = pathname.codePointAt(1) || 0x20; + const letter = pathname.codePointAt(1)! | 0x20; const sep = pathname[2]; if ( letter < CHAR_LOWERCASE_A || |