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

refactor: return nil when error has already been checked #345

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

Conversation

TechVest
Copy link

@TechVest TechVest commented Mar 10, 2025

Since we have already checked err before and returned when err != nil, err must be nil here. Return nil directly to make the code clearer.

Keep consistent with https://github.com/tonkeeper/tongo/blob/master/boc/cell.go#L132

Signed-off-by: TechVest <techdashen@qq.com>
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