mirror of https://github.com/panjf2000/ants.git
🌎 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 {
|
for f := range w.task {
|
||||||
if f == nil {
|
if f == nil {
|
||||||
w.pool.decRunning()
|
w.pool.decRunning()
|
||||||
|
|
|
@ -54,6 +54,7 @@ func (w *WorkerWithFunc) run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
for args := range w.args {
|
for args := range w.args {
|
||||||
if args == nil {
|
if args == nil {
|
||||||
w.pool.decRunning()
|
w.pool.decRunning()
|
||||||
|
|
Loading…
Reference in New Issue