Skip to content

Commit 5dc93b3

Browse files
committed
whoops, fix bug
1 parent 4d932c3 commit 5dc93b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

retry.go

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func NotOnErrors(errs ...error) Condition {
8080
// of errors.Cause() on the original error from the run function.
8181
func (r *Retry) Conditions(fns ...Condition) *Retry {
8282
for i, fn := range fns {
83+
fn := fn
8384
fns[i] = func(err error) bool {
8485
err = errors.Cause(err)
8586
return fn(err)

0 commit comments

Comments
 (0)