From e8568b806c1525f330b01a674c2dda873c38e20e Mon Sep 17 00:00:00 2001 From: Hu Shuai Date: Wed, 12 May 2021 09:44:09 +0800 Subject: [PATCH] Fix small ineffassign issue Signed-off-by: Hu Shuai --- translator/trace/jaeger/traces_to_jaegerproto_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translator/trace/jaeger/traces_to_jaegerproto_test.go b/translator/trace/jaeger/traces_to_jaegerproto_test.go index 7546208a578..0cd2ec184ab 100644 --- a/translator/trace/jaeger/traces_to_jaegerproto_test.go +++ b/translator/trace/jaeger/traces_to_jaegerproto_test.go @@ -83,10 +83,10 @@ func TestGetErrorTagFromStatusCode(t *testing.T) { } func TestGetTagFromStatusMsg(t *testing.T) { - got, ok := getTagFromStatusMsg("") + _, ok := getTagFromStatusMsg("") assert.False(t, ok) - got, ok = getTagFromStatusMsg("test-error") + got, ok := getTagFromStatusMsg("test-error") assert.True(t, ok) assert.EqualValues(t, model.KeyValue{ Key: tracetranslator.TagStatusMsg,