From e08c975fbd90a2e477355a971a070ac51ec5e675 Mon Sep 17 00:00:00 2001 From: Greg Date: Fri, 21 Sep 2018 12:39:05 -0700 Subject: [PATCH] Fix rune conversion in csv parser (#4728) --- plugins/parsers/registry.go | 2 -- 1 file changed, 2 deletions(-) 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{