mirror of https://github.com/docker/compose.git
Fix Linting Issues
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
parent
b670aefb94
commit
3a21e1e319
|
@ -99,6 +99,7 @@ func cleanInfiniteGoroutine() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
defer cleanInfiniteGoroutine()
|
||||||
colors := map[string]colorFunc{}
|
colors := map[string]colorFunc{}
|
||||||
for i, name := range names {
|
for i, name := range names {
|
||||||
colors[name] = makeColorFunc(strconv.Itoa(30 + i))
|
colors[name] = makeColorFunc(strconv.Itoa(30 + i))
|
||||||
|
@ -131,5 +132,4 @@ func init() {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
defer cleanInfiniteGoroutine()
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,5 +75,5 @@ func TestPrint(t *testing.T) {
|
||||||
|
|
||||||
// Test the absence of unexpected goroutines.
|
// Test the absence of unexpected goroutines.
|
||||||
func TestColorsGoroutinesLeak(t *testing.T) {
|
func TestColorsGoroutinesLeak(t *testing.T) {
|
||||||
defer goleak.VerifyNone(t)
|
goleak.VerifyNone(t)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue