u 3 years ago
parent
commit
449d38e5e6
  1. 15
      core.go

15
core.go

@ -134,14 +134,13 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool {
value, ok := isInTimeOfDayCacheBool.Load(mainKey) value, ok := isInTimeOfDayCacheBool.Load(mainKey)
if ok { if ok {
ret, ok := value.(int)
if ok {
if ret == 3 {
return true
}
if ret == 4 {
return false
}
ret := value.(int)
if ret == 3 {
return true
}
if ret == 4 {
return false
} }
} }

Loading…
Cancel
Save