mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
chore(deps): bump github.com/golangci/golangci-lint from 1.47.2 to 1.47.3 (#3522)
* chore(deps): bump github.com/golangci/golangci-lint Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.47.2 to 1.47.3. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](https://github.com/golangci/golangci-lint/compare/v1.47.2...v1.47.3) --- updated-dependencies: - dependency-name: github.com/golangci/golangci-lint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * fix linting issues Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
This commit is contained in:
parent
1ead148cbc
commit
f253365470
3 changed files with 42 additions and 38 deletions
|
@ -198,12 +198,12 @@ func ocExport(name string, exporter *ocprom.Exporter, r *http.Request, labels []
|
|||
exporter.ServeHTTP(rec, r)
|
||||
|
||||
if rec.Code/100 != 2 {
|
||||
return promProducerResult{name: name, err: errors.New(rec.Result().Status)}
|
||||
return promProducerResult{name: name, err: errors.New(rec.Result().Status)} //nolint
|
||||
}
|
||||
|
||||
return promProducerResult{
|
||||
name: name,
|
||||
src: rec.Result().Body,
|
||||
src: rec.Result().Body, //nolint
|
||||
labels: labels,
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ func scrapeEndpoint(endpoint ScrapeEndpoint, labels []*io_prometheus_client.Labe
|
|||
return promProducerResult{name: name, err: fmt.Errorf("make request: %w", err)}
|
||||
}
|
||||
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
resp, err := http.DefaultClient.Do(req) //nolint
|
||||
if err != nil {
|
||||
return promProducerResult{name: name, err: fmt.Errorf("request: %w", err)}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue