remove redundant return statements

This commit is contained in:
kim 2024-04-26 13:27:05 +01:00
parent 07e6331b2b
commit 951335a26c
3 changed files with 0 additions and 9 deletions

View file

@ -123,8 +123,6 @@ func (p *WorkerPool) Start(n int) {
// false = already running.
_ = p.workers[i].Start()
}
return
}
// Stop will attempt to stop contained Worker{}s.
@ -147,7 +145,6 @@ func (p *WorkerPool) Stop() {
// Unset workers slice.
p.workers = p.workers[:0]
return
}
// Worker wraps an httpclient.Client{} to feed

View file

@ -61,8 +61,6 @@ func (p *FnWorkerPool) Start(n int) {
// false = already running.
_ = p.workers[i].Start()
}
return
}
// Stop will attempt to stop contained FnWorker{}s.
@ -85,7 +83,6 @@ func (p *FnWorkerPool) Stop() {
// Unset workers slice.
p.workers = p.workers[:0]
return
}
// FnWorker wraps a queue.SimpleQueue{} which

View file

@ -71,8 +71,6 @@ func (p *MsgWorkerPool[T]) Start(n int) {
// false = already running.
_ = p.workers[i].Start()
}
return
}
// Stop will attempt to stop contained Worker{}s.
@ -95,7 +93,6 @@ func (p *MsgWorkerPool[T]) Stop() {
// Unset workers slice.
p.workers = p.workers[:0]
return
}
// MsgWorker wraps a processing function to