Remove test for empty metrics list from file output
This commit is contained in:
parent
7cc34787c2
commit
1335b269d4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue