CI step for static check (#467)

* CI step for static check

* fix staticcheck
This commit is contained in:
David Zhao
2022-02-24 23:07:15 -08:00
committed by GitHub
parent 778d1aa141
commit 130decbf1d
6 changed files with 19 additions and 15 deletions
-2
View File
@@ -12,7 +12,6 @@ import (
)
var (
logConfig config.LoggingConfig
pionLevel zapcore.Level
)
@@ -43,7 +42,6 @@ func SetLogger(l logr.Logger) {
}
func InitFromConfig(config config.LoggingConfig) {
logConfig = config
lvl := parseLevel(config.Level)
pionLevel = parseLevel(config.PionLevel)
if lvl > pionLevel {