Skip to content

Commit

Permalink
Never swallow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Oct 1, 2024
1 parent b54c10b commit 37b0039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundle/internal/bundletest/mutate.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import (
)

func Mutate(t *testing.T, b *bundle.Bundle, f func(v dyn.Value) (dyn.Value, error)) {
bundle.ApplyFunc(context.Background(), b, func(ctx context.Context, b *bundle.Bundle) diag.Diagnostics {
diags := bundle.ApplyFunc(context.Background(), b, func(ctx context.Context, b *bundle.Bundle) diag.Diagnostics {
err := b.Config.Mutate(f)
require.NoError(t, err)
return nil
})
require.NoError(t, diags.Error())
}

0 comments on commit 37b0039

Please sign in to comment.