Skip to content

Commit

Permalink
Improve code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
santileira committed Jun 19, 2024
1 parent 4c9c61c commit b565fa2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions baggage/baggage.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,7 @@ func parseMember(member string) (Member, error) {
if !utf8.ValidString(value) {
// Handle invalid UTF-8 sequences
// Replace them with a replacement code point or handle them as needed
invalidSequences := findInvalidUTF8Sequences(value)
// Replace invalid sequence with a replacement code point
for _, is := range invalidSequences {
for _, is := range findInvalidUTF8Sequences(value) {
value = strings.ReplaceAll(value, is, "�")
}
}
Expand Down

0 comments on commit b565fa2

Please sign in to comment.