forked from mirror/ants
🌎 Reduce blank lines
This commit is contained in:
parent
a0364a1128
commit
24c28c985c
|
@ -54,6 +54,7 @@ func (w *Worker) run() {
|
|||
}
|
||||
}
|
||||
}()
|
||||
|
||||
for f := range w.task {
|
||||
if f == nil {
|
||||
w.pool.decRunning()
|
||||
|
|
|
@ -54,6 +54,7 @@ func (w *WorkerWithFunc) run() {
|
|||
}
|
||||
}
|
||||
}()
|
||||
|
||||
for args := range w.args {
|
||||
if args == nil {
|
||||
w.pool.decRunning()
|
||||
|
|
Loading…
Reference in New Issue