src/go/plugin/go.d/modules/prometheus/init.go
Method Prometheus.initPrometheusClient
has 5 return statements (exceeds 4 allowed). Open
Open
func (p *Prometheus) initPrometheusClient() (prometheus.Prometheus, error) {
httpClient, err := web.NewHTTPClient(p.ClientConfig)
if err != nil {
return nil, fmt.Errorf("init HTTP client: %v", err)
}