Skip to content

Commit

Permalink
fix: retry limit
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Mar 19, 2023
1 parent 1cc7dc8 commit 0129c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Option struct {
}

func (o Option) Retry(cmd string, args []string) error {
if o.Limit > 0 {
if o.Limit <= 0 {
o.Limit = 3
}

Expand Down

0 comments on commit 0129c9e

Please sign in to comment.