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
No known key found for this signature in database
GPG Key ID: 3C27FB622A28E065
1 changed files with 4 additions and 4 deletions

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)
}
}