🌎 Reduce blank lines

This commit is contained in:
Andy Pan 2019-01-25 22:00:33 +08:00
parent a0364a1128
commit 24c28c985c
2 changed files with 4 additions and 2 deletions

View File

@ -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()
@ -63,4 +64,4 @@ func (w *Worker) run() {
w.pool.putWorker(w) w.pool.putWorker(w)
} }
}() }()
} }

View File

@ -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()
@ -63,4 +64,4 @@ func (w *WorkerWithFunc) run() {
w.pool.putWorker(w) w.pool.putWorker(w)
} }
}() }()
} }