From be8b87000cb1e47eec641b2b6f403204f1d3c1ba Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 4 Jun 2018 17:58:40 -0700 Subject: [PATCH] Remove test for empty metrics list from file output --- plugins/outputs/file/file.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/outputs/file/file.go b/plugins/outputs/file/file.go index 5f2bf042f..0bbff2f64 100644 --- a/plugins/outputs/file/file.go +++ b/plugins/outputs/file/file.go @@ -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)