Lint pool.go

Second value can be omitted from range. Loop is equivalent.
This commit is contained in:
bdd 2015-06-08 09:18:22 -04:00 committed by Dwayne Jones
parent 89942c6f95
commit c9b8e011f5

View file

@ -64,7 +64,7 @@ func (p *Pool) List() []worker.Worker {
defer p.Unlock()
var workers []worker.Worker
for w, _ := range p.workers {
for w := range p.workers {
workers = append(workers, w)
}
return workers