Fix rune conversion in csv parser (#4728)

(cherry picked from commit e08c975fbd)
This commit is contained in:
Greg
2018-09-21 12:41:20 -07:00
committed by Daniel Nelson
parent ce2827fc69
commit 16cf29557c
-2
View File
@@ -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{