Skip to content

refactor: remove usage of goto in the image store #2969

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andaaron
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Feb 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.06%. Comparing base (88efa50) to head (aa20fcd).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2969   +/-   ##
=======================================
  Coverage   91.06%   91.06%           
=======================================
  Files         174      174           
  Lines       32666    32667    +1     
=======================================
+ Hits        29747    29748    +1     
  Misses       2207     2207           
  Partials      712      712           

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

@andaaron andaaron marked this pull request as ready for review February 15, 2025 17:47
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

but why make this change at all?

@andaaron
Copy link
Contributor Author

Because it was very confusing for me as a developer reading the code.
I was troubleshooting an issue related to some of the calls made from this function, and it took me over an hour to notice we had a loop and those functions were called multiple times.

In any case don't merge this. I prefer to proceed with the PR also handling the locks.

@andaaron andaaron marked this pull request as draft February 27, 2025 09:51
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.

2 participants