alibaba/kt-connect

View on GitHub
pkg/kt/util/network.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ExtractHostIp has 5 return statements (exceeds 4 allowed).
Open

func ExtractHostIp(url string) string {
    if !strings.Contains(url, ":") {
        return ""
    }
    host := strings.Trim(strings.Split(url, ":")[1], "/")
Severity: Major
Found in pkg/kt/util/network.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status