Skip to content

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

Open
TechVest wants to merge 1 commit intoethpandaops:masterfrom
TechVest:master
Open

refactor: return nil when error has already been checked#196
TechVest wants to merge 1 commit intoethpandaops:masterfrom
TechVest:master

Conversation

@TechVest
Copy link

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.

Signed-off-by: TechVest <techdashen@qq.com>
@TechVest TechVest requested a review from samcm as a code owner March 10, 2025 13:37
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