Skip to content

隐藏的问题:err is never used #819

Open
@Tiper-In-Github

Description

@Tiper-In-Github

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions