forked from mirrors/statsd_exporter
fix linter warnings: goimports, wsl
Signed-off-by: akartasov <agneum@gmail.com>
This commit is contained in:
parent
2ab2c442cf
commit
b6fc5ded9f
2 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ func EscapeMetricName(metricName string) string {
|
||||||
// This is an character replacement method optimized for this limited
|
// This is an character replacement method optimized for this limited
|
||||||
// use case. It is much faster than using a regex.
|
// use case. It is much faster than using a regex.
|
||||||
offset := 0
|
offset := 0
|
||||||
|
|
||||||
var prevChar rune
|
var prevChar rune
|
||||||
|
|
||||||
for i, c := range metricName {
|
for i, c := range metricName {
|
||||||
// Seek forward, skipping valid characters until we find one that needs
|
// Seek forward, skipping valid characters until we find one that needs
|
||||||
// to be replaced, then add all the characters we've seen so far to the
|
// to be replaced, then add all the characters we've seen so far to the
|
||||||
|
|
Loading…
Reference in a new issue