deal with golint on master branch failing CI for varnamelen lint check

This commit is contained in:
Cody Lee
2022-01-25 15:47:21 -06:00
parent eaecfcdbfd
commit fbb28c15ab

View File

@@ -26,14 +26,14 @@ func main() {
}
}
func setTimeZone(tz string) {
if tz == "" {
func setTimeZone(timezone string) {
if timezone == "" {
return
}
var err error
if time.Local, err = time.LoadLocation(tz); err != nil {
log.Printf("[ERROR] Loading TZ Location '%s': %v\n", tz, err)
if time.Local, err = time.LoadLocation(timezone); err != nil {
log.Printf("[ERROR] Loading TZ Location '%s': %v\n", timezone, err)
}
}