Update bridge/slack/helpers.go

Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
This commit is contained in:
Wim
2018-10-24 11:38:57 +08:00
committed by GitHub
parent 7705aa2a3b
commit 76a601a474

View File

@@ -65,7 +65,7 @@ func (b *Bslack) populateUsers() {
}
newUsers := map[string]*slack.User{}
for i, _ := range users {
for i := range users {
// Use array index for pointer, not the copy
// See: https://stackoverflow.com/a/29498133/504018
newUsers[users[i].ID] = &users[i]