Skip to content

Commit

Permalink
Cleanup var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoffl01 committed Dec 11, 2024
1 parent f0f73af commit bf4f376
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/contribroutines/contribroutines.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ package contribroutines

import "sync"

var stop chan struct{} = make(chan struct{})
var once sync.Once
var (
stop chan struct{} = make(chan struct{})
once sync.Once
)

func Stop() {
once.Do(func() {
Expand Down

0 comments on commit bf4f376

Please sign in to comment.