Remove test for empty metrics list from file output

This commit is contained in:
Daniel Nelson 2018-06-04 17:58:40 -07:00
parent ff93c3c326
commit be8b87000c
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 0 additions and 4 deletions

View File

@ -83,10 +83,6 @@ func (f *File) Description() string {
} }
func (f *File) Write(metrics []telegraf.Metric) error { func (f *File) Write(metrics []telegraf.Metric) error {
if len(metrics) == 0 {
return nil
}
var writeErr error = nil var writeErr error = nil
for _, metric := range metrics { for _, metric := range metrics {
b, err := f.serializer.Serialize(metric) b, err := f.serializer.Serialize(metric)