mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: remove unnecessary redeclarations in for loops (part 2) (#18593)
This commit is contained in:
@ -73,7 +73,6 @@ func (m *MemoryPubsub) Publish(event string, message []byte) error {
|
||||
var wg sync.WaitGroup
|
||||
for _, listener := range listeners {
|
||||
wg.Add(1)
|
||||
listener := listener
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
listener.send(context.Background(), message)
|
||||
|
Reference in New Issue
Block a user