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

Remove unnecessary precondition checks #2129

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

bgrainger
Copy link
Contributor

What this PR does / why we need it:

Code clean up from #2096 (comment).

The public constructors prevent the object from being in this state.

Does this PR introduce a user-facing change?:

No.

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • [N/A] Created/updated tests
  • Unit tests passing
  • End-to-end tests passing
  • [N/A] Extended the documentation
  • [N/A] Provided sample for the feature

The public constructors prevent the object from being in this state.

Signed-off-by: Bradley Grainger <[email protected]>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5be2f55) 64.23% compared to head (87d0dbd) 64.12%.
Report is 3 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2129      +/-   ##
==========================================
- Coverage   64.23%   64.12%   -0.11%     
==========================================
  Files         248      248              
  Lines        8396     8340      -56     
  Branches      592      584       -8     
==========================================
- Hits         5393     5348      -45     
+ Misses       2852     2844       -8     
+ Partials      151      148       -3     
Flag Coverage Δ
MySql 31.97% <ø> (+0.63%) ⬆️

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

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

Copy link
Collaborator

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

Thanks! PTAL at my comment.

src/HealthChecks.MySql/MySqlHealthCheck.cs Outdated Show resolved Hide resolved
Co-authored-by: Adam Sitnik <[email protected]>
Copy link
Collaborator

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @bgrainger !

@adamsitnik adamsitnik merged commit da70571 into Xabaril:master Dec 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants