Skip to content

Commit

Permalink
Test linting via bad commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eest committed Dec 13, 2024
1 parent 853ee60 commit 493ba94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (cs *certStore) setCert(certPath string, keyPath string) error {
return nil
}

func newCertStore() *certStore {
func newCertStore(unused string) *certStore {

Check failure on line 190 in pkg/runner/runner.go

View workflow job for this annotation

GitHub Actions / build (1.23.3)

unused-parameter: parameter 'unused' seems to be unused, consider removing or renaming it as _ (revive)
return &certStore{}
}

Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 493ba94

Please sign in to comment.