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

propagate null for error delegates #1023

Merged

Conversation

SimonCropp
Copy link
Contributor

reduces alloc and deletes some code

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2023

Codecov Report

Merging #1023 (c3e00e5) into main (7cf4b58) will increase coverage by 0.22%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main    #1023      +/-   ##
==========================================
+ Coverage   71.22%   71.44%   +0.22%     
==========================================
  Files         137      137              
  Lines        3764     3744      -20     
  Branches      764      748      -16     
==========================================
- Hits         2681     2675       -6     
+ Misses        872      864       -8     
+ Partials      211      205       -6     
Flag Coverage Δ
linux 71.44% <83.33%> (+0.22%) ⬆️
macos 71.44% <83.33%> (+0.22%) ⬆️
windows 71.44% <83.33%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Polly/Caching/AsyncCacheEngine.cs 92.30% <0.00%> (-7.70%) ⬇️
src/Polly/Caching/AsyncCacheSyntax.cs 38.46% <ø> (+1.79%) ⬆️
src/Polly/Caching/AsyncCacheTResultSyntax.cs 18.18% <ø> (+0.14%) ⬆️
src/Polly/Caching/CacheSyntax.cs 38.46% <ø> (+1.79%) ⬆️
src/Polly/Caching/CacheTResultSyntax.cs 20.00% <ø> (+0.30%) ⬆️
src/Polly/Caching/AsyncCachePolicy.cs 100.00% <100.00%> (ø)
src/Polly/Caching/CacheEngine.cs 100.00% <100.00%> (ø)
src/Polly/Caching/CachePolicy.cs 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@SimonCropp SimonCropp merged commit 6a0b21e into main Jan 14, 2023
@SimonCropp SimonCropp deleted the propogate-null-for-onCachePutError-and-onCacheGetError branch January 14, 2023 22:23
@martincostello
Copy link
Member

I guess this was more allow null than propagate null.

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