multi: improve readability of goroutine defers
This commit fixes the readability of some of the defer calls in goroutines by making sure the defer stands out properly.
This commit is contained in:
8 files changed
+10
-1
No files matched your search
@@ -39,6 +39,7 @@ func NewForce(interval time.Duration) *Force {
|
||||
m.wg.Add(1)
|
||||
go func() {
|
||||
defer m.wg.Done()
|
||||
|
||||
for {
|
||||
select {
|
||||
case t := <-m.ticker:
|
||||
|
||||
Reference in new issue
Block a user