mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-05 17:08:50 +00:00
Lint pool.go
Second value can be omitted from range. Loop is equivalent.
This commit is contained in:
parent
89942c6f95
commit
c9b8e011f5
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func (p *Pool) List() []worker.Worker {
|
||||||
defer p.Unlock()
|
defer p.Unlock()
|
||||||
|
|
||||||
var workers []worker.Worker
|
var workers []worker.Worker
|
||||||
for w, _ := range p.workers {
|
for w := range p.workers {
|
||||||
workers = append(workers, w)
|
workers = append(workers, w)
|
||||||
}
|
}
|
||||||
return workers
|
return workers
|
||||||
|
|
Loading…
Reference in a new issue