Fix Linting Issues

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
AhmedGrati 2023-01-23 10:50:56 +01:00
parent b670aefb94
commit 3a21e1e319
2 changed files with 2 additions and 2 deletions

View File

@ -99,6 +99,7 @@ func cleanInfiniteGoroutine() {
}
func init() {
defer cleanInfiniteGoroutine()
colors := map[string]colorFunc{}
for i, name := range names {
colors[name] = makeColorFunc(strconv.Itoa(30 + i))
@ -131,5 +132,4 @@ func init() {
}
}()
defer cleanInfiniteGoroutine()
}

View File

@ -75,5 +75,5 @@ func TestPrint(t *testing.T) {
// Test the absence of unexpected goroutines.
func TestColorsGoroutinesLeak(t *testing.T) {
defer goleak.VerifyNone(t)
goleak.VerifyNone(t)
}