From 0779904823a465541eebea3d24e9e07b000e2cdb Mon Sep 17 00:00:00 2001 From: Sambhav Saggi <17993169+sambhavsaggi@users.noreply.github.com> Date: Mon, 2 Aug 2021 07:53:41 -0400 Subject: [PATCH] Make golangci-lint happy about shadow variables --- internal/log.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/log.go b/internal/log.go index 9cded9411..002934721 100644 --- a/internal/log.go +++ b/internal/log.go @@ -188,12 +188,12 @@ func checkSyslogHookParams(params map[string]interface{}) { logrus.Fatalf("Parameter \"address\" for logging hook of type \"syslog\" should be a string") } - proto, ok := params["protocol"] - if !ok { + proto, ok2 := params["protocol"] + if !ok2 { logrus.Fatalf("Expecting a parameter \"protocol\" for logging hook of type \"syslog\"") } - if _, ok := proto.(string); !ok { + if _, ok2 := proto.(string); !ok2 { logrus.Fatalf("Parameter \"protocol\" for logging hook of type \"syslog\" should be a string") }