We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d932c3 commit 5dc93b3Copy full SHA for 5dc93b3
retry.go
@@ -80,6 +80,7 @@ func NotOnErrors(errs ...error) Condition {
80
// of errors.Cause() on the original error from the run function.
81
func (r *Retry) Conditions(fns ...Condition) *Retry {
82
for i, fn := range fns {
83
+ fn := fn
84
fns[i] = func(err error) bool {
85
err = errors.Cause(err)
86
return fn(err)
0 commit comments