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

Fix S3237: Rule should not throw NullReferenceException when using ex… #1022

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

Evangelink
Copy link
Contributor

…pression body accessor

Fix #1003

{
return;
}

if (accessorDeclaration.Body.Statements.Count == 1 &&
accessorDeclaration.Body.Statements.Single() is ThrowStatementSyntax)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This wasn't mandatory in this commit but that was weird to read.

Copy link
Contributor

@valhristov valhristov left a comment

Choose a reason for hiding this comment

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

I can't believe you removed Linq usage

@Evangelink Evangelink merged commit a9477c7 into master Dec 18, 2017
@Evangelink Evangelink deleted the ammo/fix-usevalueparameter branch December 18, 2017 15:15
@ghost ghost removed the Status: Needs Review label Dec 18, 2017
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