forked from jason/cpolis
A bit of code cleanup
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user