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 empty statement #2136

Merged
merged 1 commit into from Aug 23, 2023
Merged

Conversation

JRahnama
Copy link
Member

fixes #2133.

Empty statements are valid in C# and have some use-cases. This, however seemed oversighted, but had no effect on perf or caused any issue at compile time. For code-cleanup purposes I have addressed it in this PR.

@JRahnama JRahnama added this to the 5.2.0-preview4 milestone Aug 22, 2023
@JRahnama JRahnama mentioned this pull request Aug 22, 2023
Copy link
Contributor

@arellegue arellegue left a comment

Choose a reason for hiding this comment

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

approved

@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02% ⚠️

Comparison is base (610a2c2) 70.98% compared to head (75d5e0b) 70.97%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2136      +/-   ##
==========================================
- Coverage   70.98%   70.97%   -0.02%     
==========================================
  Files         305      305              
  Lines       61818    61844      +26     
==========================================
+ Hits        43884    43891       +7     
- Misses      17934    17953      +19     
Flag Coverage Δ
addons 92.88% <ø> (ø)
netcore 73.47% <ø> (-0.05%) ⬇️
netfx 69.71% <ø> (-0.01%) ⬇️

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

Files Changed Coverage Δ
...core/src/Microsoft/Data/SqlClient/SqlConnection.cs 79.45% <ø> (ø)
...etfx/src/Microsoft/Data/SqlClient/SqlConnection.cs 60.91% <ø> (+0.25%) ⬆️

... and 17 files with indirect coverage changes

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

@JRahnama JRahnama merged commit a1ef973 into dotnet:main Aug 23, 2023
130 of 132 checks passed
@JRahnama JRahnama deleted the remove-empty-statement branch September 8, 2023 12:53
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.

Minor code issue
4 participants