From 449d38e5e630f465d9add9a3c9147b51dfdfacbb Mon Sep 17 00:00:00 2001 From: u Date: Tue, 24 Aug 2021 15:41:54 +0800 Subject: [PATCH] fix --- core.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/core.go b/core.go index 2d39ac1..fb69ac7 100644 --- a/core.go +++ b/core.go @@ -134,14 +134,13 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { value, ok := isInTimeOfDayCacheBool.Load(mainKey) 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 } }