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()
|
||||
|
@ -63,4 +64,4 @@ func (w *Worker) run() {
|
|||
w.pool.putWorker(w)
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
|
@ -54,6 +54,7 @@ func (w *WorkerWithFunc) run() {
|
|||
}
|
||||
}
|
||||
}()
|
||||
|
||||
for args := range w.args {
|
||||
if args == nil {
|
||||
w.pool.decRunning()
|
||||
|
@ -63,4 +64,4 @@ func (w *WorkerWithFunc) run() {
|
|||
w.pool.putWorker(w)
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue