Skip to content

Comments

fix: fix incorrect nil return value#3219

Merged
sukunrt merged 1 commit intolibp2p:masterfrom
huochexizhan:master
Mar 10, 2025
Merged

fix: fix incorrect nil return value#3219
sukunrt merged 1 commit intolibp2p:masterfrom
huochexizhan:master

Conversation

@huochexizhan
Copy link
Contributor

Since we have already checked err before and returned != nil, err must be nil here. In fact, it should return r.Error.

Signed-off-by: huochexizhan <huochexizhan@outlook.com>
@huochexizhan
Copy link
Contributor Author

Thanks for your review.

@sukunrt sukunrt merged commit b663d7b into libp2p:master Mar 10, 2025
9 checks passed
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.

3 participants