fix: be compliant with golanci linter
All checks were successful
Lint Markdown files / Run markdown linter (push) Successful in 13s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 30s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m38s

This commit is contained in:
2025-08-12 16:28:40 +02:00
parent d2cf678b97
commit 2f17abedb9
5 changed files with 50 additions and 21 deletions

View File

@ -9,8 +9,8 @@ import (
"net/url"
)
var ErrNoAPIToken error = errors.New("No API token defined")
var ErrNoURL error = errors.New("No API token defined")
var ErrNoAPIToken error = errors.New("no API token defined")
var ErrNoURL error = errors.New("no API token defined")
type ReadinessProbe struct {
additionalQueryValues url.Values
@ -40,6 +40,7 @@ func (rp *ReadinessProbe) Run(ctx context.Context) error {
httpClient := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
// #nosec G402
InsecureSkipVerify: rp.insecure,
},
},
@ -64,7 +65,7 @@ func (rp *ReadinessProbe) Run(ctx context.Context) error {
}
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("Received unexpected HTTP status code %v", resp.StatusCode)
return fmt.Errorf("received unexpected HTTP status code %v", resp.StatusCode)
}
return nil