Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Jul 19, 2022
1 parent 5096dbe commit 565219b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/network/lib/uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import url, { URL } from 'url'

// yup, protocol contains a: ':' colon
// at the end of it (-______________-)
const DEFAULT_PROTOCOL_PORTS: Record<string, string> = {
const DEFAULT_PROTOCOL_PORTS = {
'https:': '443',
'http:': '80',
}
} as const

const DEFAULT_PORTS = _.values(DEFAULT_PROTOCOL_PORTS)
const DEFAULT_PORTS = _.values(DEFAULT_PROTOCOL_PORTS) as string[]

const portIsDefault = (port: string | null) => {
return port && DEFAULT_PORTS.includes(port)
Expand Down

0 comments on commit 565219b

Please sign in to comment.