From 0fa2fd6dc1811f81026a252854f4a8c0471ac7b0 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 8 Feb 2022 13:55:42 +0800 Subject: [PATCH] Resolve lint issues --- ants_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ants_test.go b/ants_test.go index 31a5e02..622e482 100644 --- a/ants_test.go +++ b/ants_test.go @@ -602,7 +602,7 @@ func TestReleaseWhenRunningPool(t *testing.T) { }() for i := 0; i < 30; i++ { j := i - p.Submit(func() { + _ = p.Submit(func() { t.Log("do task", j) time.Sleep(1 * time.Second) }) @@ -617,7 +617,7 @@ func TestReleaseWhenRunningPool(t *testing.T) { }() for i := 100; i < 130; i++ { j := i - p.Submit(func() { + _ = p.Submit(func() { t.Log("do task", j) time.Sleep(1 * time.Second) }) @@ -644,7 +644,7 @@ func TestReleaseWhenRunningPoolWithFunc(t *testing.T) { t.Log("stop aaa") }() for i := 0; i < 30; i++ { - p.Invoke(i) + _ = p.Invoke(i) } }() @@ -655,7 +655,7 @@ func TestReleaseWhenRunningPoolWithFunc(t *testing.T) { t.Log("stop bbb") }() for i := 100; i < 130; i++ { - p.Invoke(i) + _ = p.Invoke(i) } }()