优化代码

This commit is contained in:
2025-09-27 01:09:20 +08:00
parent 5d1b642cc8
commit 25474f851e
3 changed files with 2 additions and 3 deletions

View File

@@ -118,7 +118,6 @@ func (d *Device) ParseProperties(v interface{}) error {
// SelfCheck 进行参数自检, 返回检测结果
// 方法会根据自身类型进行参数检查, 参数不全时返回false
// TODO 没写单测
func (d *Device) SelfCheck() bool {
// 使用清晰的 switch 结构,确保所有情况都被覆盖
switch d.Type {