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

Tx: var err is not assigned at all (fixup) #583

Closed
wants to merge 1 commit into from

Conversation

ideapark
Copy link

@ideapark ideapark commented Apr 1, 2024

The buggy code declared var err, but never assigned to it. so the
if err != nil will always be false, and the error case was missed.

Signed-off-by: Park Zhou ideapark@139.com

The buggy code declared `var err`, but never assigned to it. so the
`if err != nil` will always be false, and the error case was missed.

Signed-off-by: Park Zhou <ideapark@139.com>
@elliotchenzichang
Copy link
Member

could you solve the conflicts and push it again, thanks!

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.07%. Comparing base (b346859) to head (243c167).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #583   +/-   ##
=======================================
  Coverage   73.07%   73.07%           
=======================================
  Files          37       37           
  Lines        5604     5604           
=======================================
  Hits         4095     4095           
  Misses       1105     1105           
  Partials      404      404           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ideapark
Copy link
Author

ideapark commented Apr 3, 2024

I think the PR #582 has fixed this bug unintentially, so close this PR now.

@ideapark ideapark closed this Apr 3, 2024
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.

None yet

2 participants