Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 5557bfb

Browse files
author
João Assunção
committed
fix(encode_decode_test): fixes golangci ineffassign
1 parent d41ba78 commit 5557bfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/kafka/encode_decode_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ func TestDecoder_JsonMessageToRecord_IncludeKey(t *testing.T) {
9595
d := &Decoder{CodecCache: sync.Map{}}
9696

9797
key := dummyKey{"marco"}
98-
jsonBytesKey, err := json.Marshal(key)
99-
assert.Nil(t, err)
98+
jsonBytesKey, _ := json.Marshal(key)
10099

101100
val := dummyValue{"pop", 60}
102101
jsonBytesValue, err := json.Marshal(val)

0 commit comments

Comments
 (0)