Skip to content

Conversation

@ns-vasilev
Copy link
Member

No description provided.

@ns-vasilev ns-vasilev self-assigned this Dec 14, 2025
@ns-vasilev ns-vasilev requested a review from a team as a code owner December 14, 2025 18:50
@spacecode-github-bot
Copy link

spacecode-github-bot commented Dec 14, 2025

1 Message
📖 ✅ Great job! All checks passed.

Generated by 🚫 Danger

@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (4bf98c1) to head (1e7721a).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   98.83%   99.09%   +0.26%     
==========================================
  Files          10       10              
  Lines         512      661     +149     
==========================================
+ Hits          506      655     +149     
  Misses          6        6              
Files with missing lines Coverage Δ
...lasses/RetryPolicyService/RetryPolicyService.swift 100.00% <100.00%> (ø)
...phoonTests/UnitTests/RetryPolicyServiceTests.swift 100.00% <100.00%> (ø)

Removes code duplication by merging the initial attempt and subsequent retries into a single `while` loop

Changes:
- Replaces the separate initial call and `for-in` loop with a manual iterator approach.
- Centralizes the closure execution, error handling, and cancellation checks into one block.
- Improves code readability and maintainability without altering external behavior.
@ns-vasilev ns-vasilev force-pushed the refactor/simplify-retry-logic branch from 79ebc5f to 1e7721a Compare December 14, 2025 19:00
@ns-vasilev ns-vasilev merged commit 87a8ee7 into main Dec 14, 2025
39 checks passed
@ns-vasilev ns-vasilev deleted the refactor/simplify-retry-logic branch December 14, 2025 19: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.

3 participants