Skip to content

Commit

Permalink
replaced fmt.Sprintf with string concat
Browse files Browse the repository at this point in the history
  • Loading branch information
lordvidex committed Aug 22, 2023
1 parent 67eb5ea commit 52a0a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/series_by_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func transformWildcardToRegexpInSeriesByTag(input string) (string, bool) {
}

if isTransformed {
result = fmt.Sprintf("^%s$", result)
result = "^" + result + "$"
}

return result, isTransformed
Expand Down

0 comments on commit 52a0a54

Please sign in to comment.