From 493ba94d95e9f91741724d51785278f129d1d8e2 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Fri, 13 Dec 2024 13:33:23 +0100 Subject: [PATCH] Test linting via bad commit --- pkg/runner/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index e2ec555..6c8498a 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -187,7 +187,7 @@ func (cs *certStore) setCert(certPath string, keyPath string) error { return nil } -func newCertStore() *certStore { +func newCertStore(unused string) *certStore { return &certStore{} } @@ -816,7 +816,7 @@ func Run(logger *slog.Logger, loggerLevel *slog.LevelVar) { if !edm.histogramSenderDisabled { // Setup client cert/key for mTLS authentication - httpClientCertStore := newCertStore() + httpClientCertStore := newCertStore("unused") err = httpClientCertStore.setCert(viper.GetString("http-client-cert-file"), viper.GetString("http-client-key-file")) if err != nil { edm.log.Error("unable to load x509 HTTP client cert", "error", err) @@ -838,7 +838,7 @@ func Run(logger *slog.Logger, loggerLevel *slog.LevelVar) { if !edm.mqttDisabled { // Setup client cert/key for mTLS authentication - mqttClientCertStore := newCertStore() + mqttClientCertStore := newCertStore("unused") err = mqttClientCertStore.setCert(viper.GetString("mqtt-client-cert-file"), viper.GetString("mqtt-client-key-file")) if err != nil { edm.log.Error("unable to load x509 mqtt client cert", "error", err)