Skip to content

Commit

Permalink
Remove erroneous error check
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoog committed May 16, 2024
1 parent 355920f commit 025e137
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions x-pack/filebeat/input/azureeventhub/v1_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,8 @@ func (in *eventHubInputV1) Run(
defer in.pipelineClient.Close()

// Setup input metrics
inputMetrics := newInputMetrics(inputContext.ID, nil)
if err != nil {
return fmt.Errorf("failed to create input metrics: %w", err)
}
defer inputMetrics.Close()
in.metrics = inputMetrics
in.metrics = newInputMetrics(inputContext.ID, nil)
defer in.metrics.Close()

ctx := v2.GoContextFromCanceler(inputContext.Cancelation)

Expand Down

0 comments on commit 025e137

Please sign in to comment.