Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rdner committed Sep 18, 2023
1 parent ffda7cd commit d1872ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libbeat/beat/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import (
"testing"
"time"

"github.com/elastic/beats/v7/libbeat/common"
"github.com/stretchr/testify/assert"

"github.com/elastic/beats/v7/libbeat/common"
)

const (
Expand Down Expand Up @@ -82,7 +83,7 @@ func BenchmarkTestEventPutGetTimestamp(b *testing.B) {
evt := newEmptyEvent()
ts := time.Now()

evt.PutValue("@timestamp", ts)
_, _ = evt.PutValue("@timestamp", ts)

v, err := evt.GetValue("@timestamp")
if err != nil {
Expand Down Expand Up @@ -284,7 +285,7 @@ func BenchmarkTestEventMetadata(b *testing.B) {
evt := newEmptyEvent()
meta := newMeta()

evt.PutValue("@metadata", meta)
_, _ = evt.PutValue("@metadata", meta)

assert.Equal(b, meta, evt.Meta)
assert.Empty(b, evt.Fields)
Expand All @@ -303,7 +304,7 @@ func BenchmarkTestEventMetadata(b *testing.B) {
b.Run("put sub-key", func(b *testing.B) {
evt := newEmptyEvent()

evt.PutValue("@metadata._id", id)
_, _ = evt.PutValue("@metadata._id", id)

assert.Equal(b, newMeta(), evt.Meta)
assert.Empty(b, evt.Fields)
Expand Down

0 comments on commit d1872ce

Please sign in to comment.