Skip to content

Commit 96d4ae4

Browse files
committed
chore: lint
1 parent e935d7b commit 96d4ae4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

internal/api/urls.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ func IsKnownHostName(host string) bool {
5353
// get rid of port
5454
portlessHost := strings.Split(host, ":")[0]
5555

56-
if knownHostNames[portlessHost] {
57-
return true
58-
}
59-
return false
56+
return knownHostNames[portlessHost]
6057
}
6158

6259
func GetCanonicalApiUrlFromString(userDefinedUrl string) (string, error) {

0 commit comments

Comments
 (0)