Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the Retry function throws an error when the opts parameter is passed as nil #150

Closed
wants to merge 1 commit into from

Conversation

astak16
Copy link

@astak16 astak16 commented Dec 28, 2024

I submitted this PR because I found that the Retry function throws an error if the opts parameter is passed as nil. Therefore, I added a nil check in the source code.

Although it's unlikely that opts will be passed as nil directly, since opts is a variadic parameter, one of its elements could potentially be nil. Also, as the Retry function is a public API, it's important to ensure the robustness of the code.

retry.go Show resolved Hide resolved
@astak16 astak16 closed this Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants