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

Static analysis: miscellaneous "code quality" #26930

Merged
merged 1 commit into from
Dec 7, 2021
Merged

Conversation

ajcvickers
Copy link
Contributor

Part of #26805.

  • Simplify LINQ Any to All
  • Convert if to ||
  • Make abstract class constructor protected
  • Convert to const
  • Join declaration and assignment
  • Replace with simple assignment
  • Simplify conditional ternary
  • Merge Where into FirstOrDefault
  • Use Ordinal comparison

Part of #26805.

- Simplify LINQ Any to All
- Convert if to ||
- Make abstract class constructor protected
- Convert to const
- Join declaration and assignment
- Replace with simple assignment
- Simplify conditional ternary
- Merge Where into FirstOrDefault
- Use Ordinal comparison
@ajcvickers ajcvickers requested a review from a team December 7, 2021 17:11
@ajcvickers ajcvickers merged commit 9f10f2b into main Dec 7, 2021
@ajcvickers ajcvickers deleted the InspectorMcAndrew1207 branch December 7, 2021 19:25
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