Skip to content

Commit

Permalink
Remove unecessary defer
Browse files Browse the repository at this point in the history
  • Loading branch information
crobert-1 committed Jan 8, 2024
1 parent b7e9742 commit 0efbc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/batchprocessor/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestCreateProcessor(t *testing.T) {
tp, err := factory.CreateTracesProcessor(context.Background(), creationSet, cfg, nil)
assert.NotNil(t, tp)
assert.NoError(t, err, "cannot create trace processor")
defer func() { assert.NoError(t, tp.Shutdown(context.Background())) }()
assert.NoError(t, tp.Shutdown(context.Background()))

mp, err := factory.CreateMetricsProcessor(context.Background(), creationSet, cfg, nil)
assert.NotNil(t, mp)
Expand Down

0 comments on commit 0efbc21

Please sign in to comment.