Open
Description
Reproduction link
https://github.com/go-admin-team/go-admin
Steps to reproduce
直接启动项目,可在编辑器观察到多处“err is never used”警告。这导致了部分err被忽略,例如:app/other/apis/sys_server_monitor.go:52
,如果startTime
变量解析失败,但是endTime
解析成功,那么这个错误会被忽略(我承认,这是一个小概率会发生的事件)
What is expected?
return error
What is actually happening?
return nil
Environment | Info |
---|---|
go-admin | 2.1.2 |
Go | 1.23.1 |
System | windows11 |
Browser | Edge 130.0.2849.56 x64 |