-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 'use conditional expression' where it was causing a null-ref warning. #76792
Fix 'use conditional expression' where it was causing a null-ref warning. #76792
Conversation
@JoeRobich ptal :) |
} | ||
} | ||
|
||
yield break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing whatsoever :D i started with that tehre originally as i TDDed the impl of this. and i never removed. can do so in followup :)
{ | ||
public static void TestMethod(Test test) | ||
{ | ||
if (test is not null && test.Field is null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not. i can see about handling that in followup.
Fixes #75200
Fixes #63441