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 7cc34787c2
commit 1335b269d4
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 {
if len(metrics) == 0 {
return nil
}
var writeErr error = nil
for _, metric := range metrics {
b, err := f.serializer.Serialize(metric)