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: fix incorrect error return in ExportAppStateAndValidators #3618

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdqst
Copy link

@mdqst mdqst commented Mar 9, 2025

I fixed an issue in the ExportAppStateAndValidators function where the err variable was incorrectly returned. The variable is already handled inside the function and should not be returned. Instead of returning err in the following line:

}, err

I replaced it with nil to ensure that when there is no error, we return the correct type (error), which should be nil in this case.

@mdqst mdqst requested a review from a team as a code owner March 9, 2025 16:03
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.

1 participant