mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
remove redundant return statements
This commit is contained in:
parent
07e6331b2b
commit
951335a26c
3 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue