Skip to content

Commit f4d340d

Browse files
authored
fix: remove unnecessary conversion to string (#911)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 1b1df04 commit f4d340d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cbor/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func generateAstJsonMap[T map[any]any | Map](v T) ([]byte, error) {
238238
keyAstJson,
239239
valAstJson,
240240
)
241-
tmpItems = append(tmpItems, string(tmpJson))
241+
tmpItems = append(tmpItems, tmpJson)
242242
}
243243
// We naively sort the rendered map items to give consistent ordering
244244
sort.Strings(tmpItems)

0 commit comments

Comments
 (0)