mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
fix golangci-lint
This commit is contained in:
parent
de75572cd8
commit
389263249b
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func newTransport(tr http.RoundTripper, addr string, stopCh chan struct{}) (*tra
|
|||
err error
|
||||
)
|
||||
host = addr
|
||||
if strings.Index(addr, ":") >= 0 {
|
||||
if strings.Contains(addr, ":") {
|
||||
host, port, err = net.SplitHostPort(addr)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue