diff --git a/check/base.go b/check/base.go index 765f8123..fea8dc26 100644 --- a/check/base.go +++ b/check/base.go @@ -60,7 +60,7 @@ func (c *FTWCheck) SetNoLogContains(contains string) { // ForcedIgnore check if this id need to be ignored from results func (c *FTWCheck) ForcedIgnore(id string) bool { - for re, _ := range c.overrides.Ignore { + for re := range c.overrides.Ignore { if re.MatchString(id) { return true } @@ -70,7 +70,7 @@ func (c *FTWCheck) ForcedIgnore(id string) bool { // ForcedPass check if this id need to be ignored from results func (c *FTWCheck) ForcedPass(id string) bool { - for re, _ := range c.overrides.ForcePass { + for re := range c.overrides.ForcePass { if re.MatchString(id) { return true } @@ -80,7 +80,7 @@ func (c *FTWCheck) ForcedPass(id string) bool { // ForcedFail check if this id need to be ignored from results func (c *FTWCheck) ForcedFail(id string) bool { - for re, _ := range c.overrides.ForceFail { + for re := range c.overrides.ForceFail { if re.MatchString(id) { return true } diff --git a/main.go b/main.go index 51f9f003..9313e845 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ package main import ( "fmt" "os" - "time" _ "time/tzdata" "github.com/rs/zerolog" @@ -29,15 +28,6 @@ func main() { // Default level for this example is info, unless debug flag is present zerolog.SetGlobalLevel(zerolog.InfoLevel) - // Load timezone location based on TZ - tzone, _ := time.Now().Zone() - loc, err := time.LoadLocation(tzone) - if err != nil { - log.Info().Msgf("ftw/main: cannot load timezone") - } else { - time.Local = loc // -> set the global timezone - } - cmd.Execute( buildVersion(version, commit, date, builtBy), )