Skip to content

Commit

Permalink
chore: fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-rehor committed Sep 23, 2024
1 parent 26f9290 commit a60a6b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions influxdb3/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ func (p *Point) MarshalBinaryWithDefaultTags(precision lineprotocol.Precision, d
// Though this is outside the lineprotocol specification, it was supported in
// previous GO client versions.
if value, ok := p.Values.Tags[tagKey]; ok {
enc.AddTag(tagKey, strings.Replace(value, "\n", "\\n", -1))
enc.AddTag(tagKey, strings.ReplaceAll(value, "\n", "\\n"))
} else {
enc.AddTag(tagKey, strings.Replace(defaultTags[tagKey], "\n", "\\n", -1))
enc.AddTag(tagKey, strings.ReplaceAll(defaultTags[tagKey], "\n", "\\n"))
}
}

Expand Down

0 comments on commit a60a6b0

Please sign in to comment.