Update helpers.go

This commit is contained in:
Patrick Connolly
2018-10-24 11:58:20 +08:00
committed by GitHub
parent 76a601a474
commit 24a60f262a

View File

@@ -68,7 +68,7 @@ func (b *Bslack) populateUsers() {
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]
newUsers[users[i].ID] = &users[i]
}
b.usersMutex.Lock()