collector/goal.go
Method goalCollector.Update
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *goalCollector) Update(ch chan<- prometheus.Metric) error {
params := url.Values{}
params.Add("cache", "false")
body, fetchErr := c.fetchStat(c.uri, goalEndpoint, params)