Skip to content

Commit 5084eba

Browse files
committed
beater: address review
1 parent 5e6e369 commit 5084eba

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

beater/beater.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,9 @@ func (s *serverRunner) newFinalBatchProcessor(p *publish.Publisher) (model.Batch
664664
}
665665
esConfig.FlushInterval = time.Second
666666

667-
if esOutputConfig != nil {
668-
esConfig.Config = elasticsearch.DefaultConfig()
669-
if err := esOutputConfig.Unpack(&esConfig); err != nil {
670-
return nil, err
671-
}
667+
esConfig.Config = elasticsearch.DefaultConfig()
668+
if err := esOutputConfig.Unpack(&esConfig); err != nil {
669+
return nil, err
672670
}
673671
if !esConfig.Experimental {
674672
return p, nil

0 commit comments

Comments
 (0)