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