fix: lint errors after upgrading golangci-lint (#12368)

This commit is contained in:
Harshavardhana
2021-05-25 14:17:33 -07:00
committed by GitHub
parent ed4941a5f3
commit 4fd1378242
13 changed files with 26 additions and 50 deletions

View File

@@ -27,7 +27,7 @@ import (
)
// SetNotifyKafka - helper for config migration from older config.
func SetNotifyKafka(s config.Config, kName string, cfg target.KafkaArgs) error {
func SetNotifyKafka(s config.Config, name string, cfg target.KafkaArgs) error {
if !cfg.Enable {
return nil
}
@@ -36,7 +36,7 @@ func SetNotifyKafka(s config.Config, kName string, cfg target.KafkaArgs) error {
return err
}
s[config.NotifyKafkaSubSys][kName] = config.KVS{
s[config.NotifyKafkaSubSys][name] = config.KVS{
config.KV{
Key: config.Enable,
Value: config.EnableOn,