mirror of
https://github.com/unpoller/unpoller.git
synced 2026-03-31 06:33:57 -04:00
deal with golint on master branch failing CI for varnamelen lint check
This commit is contained in:
8
main.go
8
main.go
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user