A bit of code cleanup

This commit is contained in:
2024-09-10 19:59:56 +02:00
parent 4592bdf970
commit e4624b8705
4 changed files with 14 additions and 21 deletions

View File

@ -277,12 +277,12 @@ func ShowAllUsers(c *b.Config, db *b.DB, s *b.CookieStore, action string) http.H
return
}
type htmlData struct {
data := new(struct {
Users map[int64]*b.User
Action string
}
})
data := &htmlData{Action: action}
data.Action = action
data.Users, err = db.GetAllUsers()
if err != nil {
log.Println(err)