清理代码注释和优化返回值处理
This commit is contained in:
@@ -8,11 +8,11 @@ import (
|
||||
|
||||
func (h Controller) MapHot(data *maphot.InInfo, c *entity.Player) (result *maphot.OutInfo, err errorcode.ErrorCode) {
|
||||
|
||||
data.Def()
|
||||
|
||||
result = &maphot.OutInfo{
|
||||
|
||||
HotInfos: make([]maphot.MapHotInfo, 0),
|
||||
}
|
||||
|
||||
return
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user