From 5c02b87b6bdbb60ece5a884b87be581d2d1d0e67 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Wed, 13 May 2020 11:24:36 -0700 Subject: [PATCH] No need for .String() --- libbeat/outputs/elasticsearch/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/outputs/elasticsearch/client.go b/libbeat/outputs/elasticsearch/client.go index 23042cf4cff6..b88a15cda68d 100644 --- a/libbeat/outputs/elasticsearch/client.go +++ b/libbeat/outputs/elasticsearch/client.go @@ -331,7 +331,7 @@ func createEventBulkMeta( if id != "" { return eslegclient.BulkDeleteAction{Delete: meta}, nil } else { - return nil, fmt.Errorf("%s %s requires _id", events.FieldMetaOpType, events.OpTypeDelete.String()) + return nil, fmt.Errorf("%s %s requires _id", events.FieldMetaOpType, events.OpTypeDelete) } } if id != "" || version.Major > 7 || (version.Major == 7 && version.Minor >= 5) {