Update bridge/slack/helpers.go
Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ func (b *Bslack) populateUsers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
newUsers := map[string]*slack.User{}
|
newUsers := map[string]*slack.User{}
|
||||||
for i, _ := range users {
|
for i := range users {
|
||||||
// Use array index for pointer, not the copy
|
// Use array index for pointer, not the copy
|
||||||
// See: https://stackoverflow.com/a/29498133/504018
|
// See: https://stackoverflow.com/a/29498133/504018
|
||||||
newUsers[users[i].ID] = &users[i]
|
newUsers[users[i].ID] = &users[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user