github komari-monitor/komari Snapshot-2610191119

pre-release3 hours ago

主要更新内容

  • README(中英文)移除微信赞赏码,仅保留 TRON Network 打赏方式
  • 大规模代码简化:移除冗余空值检查、冗余注释、不必要的错误处理分支
  • 使用 Go 内置函数(min、max、slices.Contains、maps.Clone)替代手写等价逻辑
  • 简化 OAuth 回调 state 校验,统一 QQ 与其他提供商的处理路径
  • 自动续费计费周期判断改用 switch 替代多层 if-else
  • 登录接口改用 ShouldBindJSON 替代手动读取并解析请求体
  • 移除 CheckExpireScheduledWork 包装函数,定时任务统一调用 CheckExpire
  • 通知 goroutine 移除 recover() 包裹,panic 将正常向上传播

其他

  • .gitignore 新增 .gocache/ 目录
  • 移除多个测试文件:config_test、connector_test、postgres_integration_test(571 行)
  • GeoIP 测试移除网络依赖用例,仅保留离线 emoji 断言
  • 移除插件市场默认源 URL 测试、网络测试方法常量测试
  • 移除 JS 运行时、metricstore、OAuth 各提供商中冗余的 nil 检查
  • 移除 GitHub OAuth 空 init() 函数、终端请求中已注释的审计日志行
  • 客户端连接与 WebSocket 处理中移除冗余 nil 判断和多余变量声明

Commits

Full Changelog: 1.6.0...Snapshot-2610191119

Don't miss a new komari release

NewReleases is sending notifications on new releases.