From 47425824c5e97ddb13006c30f0ffd3e823053a7b Mon Sep 17 00:00:00 2001 From: 0xE8551CCB Date: Sat, 12 Oct 2019 22:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20lintfix:=20fix=20lint=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pool_test.go | 1 - utils.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pool_test.go b/pool_test.go index 7c6a97e..8a817b9 100644 --- a/pool_test.go +++ b/pool_test.go @@ -44,7 +44,6 @@ func Test_submitJobsCrashed(t *testing.T) { resultChan, err := submitJobs(ctx, func(payload interface{}) (i interface{}, e error) { panic("job crashed") - return }, 1) assert.Nil(t, err) diff --git a/utils.go b/utils.go index 3a1ade0..d5e98da 100644 --- a/utils.go +++ b/utils.go @@ -183,7 +183,7 @@ func structName(v interface{}) string { } func isNil(in interface{}) bool { - if in == nil || in == interface{}(nil) { + if in == nil { return true }