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

unreachable code #3450

Closed
CoderZhi opened this issue Jun 14, 2022 · 1 comment · Fixed by #3463
Closed

unreachable code #3450

CoderZhi opened this issue Jun 14, 2022 · 1 comment · Fixed by #3463
Assignees
Labels
bug Something isn't working

Comments

@CoderZhi
Copy link
Collaborator

panic(fmt.Errorf("corrupted file version: %s", header.Version))

What version of iotex-core image (or code branch) are you using?

What operating system and processor architecture are you using?

What did you do? If possible, provide a recipe for reproducing the error.

What did you expect to see?

What did you see instead?

@CoderZhi CoderZhi added the bug Something isn't working label Jun 14, 2022
@dustinxie
Copy link
Member

dustinxie commented Jun 14, 2022

this is protection code to panic for an unexpected data/type, we have similar panic in other places in the codebase to handle similar situation. let me know if there's sth I may have missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants