Fix rune conversion in csv parser (#4728)

This commit is contained in:
Greg
2018-09-21 12:39:05 -07:00
committed by Daniel Nelson
parent adf2668c1d
commit e08c975fbd

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{