We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e935d7b commit 96d4ae4Copy full SHA for 96d4ae4
1 file changed
internal/api/urls.go
@@ -53,10 +53,7 @@ func IsKnownHostName(host string) bool {
53
// get rid of port
54
portlessHost := strings.Split(host, ":")[0]
55
56
- if knownHostNames[portlessHost] {
57
- return true
58
- }
59
- return false
+ return knownHostNames[portlessHost]
60
}
61
62
func GetCanonicalApiUrlFromString(userDefinedUrl string) (string, error) {
0 commit comments