Skip to content

Commit

Permalink
Fix small ineffassign issue (open-telemetry#3144)
Browse files Browse the repository at this point in the history
Signed-off-by: Hu Shuai <[email protected]>
  • Loading branch information
hs0210 authored May 12, 2021
1 parent f1f73d7 commit f0956f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translator/trace/jaeger/traces_to_jaegerproto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f0956f5

Please sign in to comment.