fix(api): 删除未使用的变量以清理代码

- 移除了多余的变量used,减少不必要的内存占用
- 优化了list函数中的代码结构
- 提高了代码的可读性和维护性
This commit is contained in:
zhouyonggao 2025-12-19 01:04:43 +08:00
parent 43d67073c9
commit 57a32855fc
1 changed files with 0 additions and 1 deletions

View File

@ -44,7 +44,6 @@ func (a *YMTUsersAPI) list(w http.ResponseWriter, r *http.Request) {
defer rows.Close()
out := []map[string]interface{}{}
used := map[int64]struct{}{}
for rows.Next() {
var id sql.NullInt64
var name sql.NullString