Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Code style: Redundant type casting (#17305)

Jeffrey Chenafb3ad144793
diff --git a/kernel/api/icon.go b/kernel/api/icon.go
index f45f202298..552128c956 100644
--- a/kernel/api/icon.go
+++ b/kernel/api/icon.go
@@ -297,7 +297,7 @@ func daysBetween(date1, date2 time.Time) int {
}
// 加上最后一年的天数
- days += int(date2.YearDay() - date1.YearDay())
+ days += date2.YearDay() - date1.YearDay()
// 如果原始的date1晚于date2,返回负值
if swap {