mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
Lint pool.go
Second value can be omitted from range. Loop is equivalent.
This commit is contained in:
parent
d683418e8f
commit
cb28bcff37
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user