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

Make fields read-only when only set in constructor #1078

Conversation

PeterKneale
Copy link
Contributor

These fields are only set in the constructor and shouldnt be reinitialised so are good candiates to make readonly

@PeterKneale PeterKneale requested a review from a team as a code owner October 23, 2022 09:59
@codecov
Copy link

codecov bot commented Oct 23, 2022

Codecov Report

Merging #1078 (1dee312) into main (4b1a15d) will increase coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1078      +/-   ##
==========================================
+ Coverage   84.80%   84.89%   +0.09%     
==========================================
  Files         135      135              
  Lines        3298     3298              
==========================================
+ Hits         2797     2800       +3     
+ Misses        501      498       -3     
Flag Coverage Δ
linux 84.65% <ø> (-0.16%) ⬇️
macos 51.72% <ø> (+0.03%) ⬆️
windows 51.44% <ø> (-0.26%) ⬇️

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

Impacted Files Coverage Δ
src/JustSaying/JustSayingBus.cs 95.80% <ø> (ø)
...ng/Middleware/ExactlyOnce/ExactlyOnceMiddleware.cs 77.77% <0.00%> (-14.82%) ⬇️
...ools/MessageHandling/Dispatch/MessageDispatcher.cs 98.18% <0.00%> (+12.72%) ⬆️

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

@martincostello martincostello merged commit e74693d into justeattakeaway:main Oct 23, 2022
@PeterKneale PeterKneale deleted the feature/make_fields_readonly_where_possible branch October 23, 2022 21:55
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