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

Rewrite RepoCacheAlg.checkCache as for-comprehension #3560

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

fthomas
Copy link
Member

@fthomas fthomas commented Jan 21, 2025

This is a small refactoring that rewrites checkCache as for-comprehension which I think is a little bit easier to read. It also removes the second parameter from skipIfFailedRecently which was a needless complication.

This is a small refactoring that rewrites `checkCache` as
for-comprehension which I think is a little bit easier to read.
It also removes the second parameter from `skipIfFailedRecently`
which was a needless complication.
@fthomas fthomas added this to the 0.33.0 milestone Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.81%. Comparing base (30e1311) to head (aa4fbd2).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3560   +/-   ##
=======================================
  Coverage   89.81%   89.81%           
=======================================
  Files         171      171           
  Lines        4988     4988           
  Branches      496      495    -1     
=======================================
  Hits         4480     4480           
  Misses        508      508           

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

Copy link
Member

@mzuehlke mzuehlke left a comment

Choose a reason for hiding this comment

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

For sure easier to grasp

@fthomas fthomas merged commit cd8f6b9 into main Jan 22, 2025
18 checks passed
@fthomas fthomas deleted the topic/checkCache-as-for-comp branch January 22, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants