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:
Oliver Gugger committed 2022-11-21 13:54:24 +01:00
1 parent ad8e25cbc9
commit 55b53555e9
8 files changed
+10 -1

No files matched your search

+1
View File
@@ -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: