Skip to content

Commit

Permalink
No need for .String()
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed May 13, 2020
1 parent 1f4fd5d commit 5c02b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/outputs/elasticsearch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5c02b87

Please sign in to comment.