diff --git a/plugins/parsers/registry.go b/plugins/parsers/registry.go index 28ff30261..c662cf300 100644 --- a/plugins/parsers/registry.go +++ b/plugins/parsers/registry.go @@ -231,7 +231,6 @@ func newCSVParser(metricName string, if len(runeStr) > 1 { return nil, fmt.Errorf("csv_delimiter must be a single character, got: %s", delimiter) } - delimiter = fmt.Sprintf("%v", runeStr[0]) } if comment != "" { @@ -239,7 +238,6 @@ func newCSVParser(metricName string, if len(runeStr) > 1 { return nil, fmt.Errorf("csv_delimiter must be a single character, got: %s", comment) } - comment = fmt.Sprintf("%v", runeStr[0]) } parser := &csv.Parser{