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 possible null #118

Merged
merged 2 commits into from
Feb 26, 2023
Merged

fix possible null #118

merged 2 commits into from
Feb 26, 2023

Conversation

Rick-Anderson
Copy link
Contributor

No description provided.

@Rick-Anderson
Copy link
Contributor Author

@sammychinedu2ky please review.

Comment on lines 92 to 96
if(Data == null)
{
Assert.Fail("Data null");
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is necessary since it is a controlled environment. A null-forgiving operator would be better I guess 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why kill a mosquito with a swatter when you can use a bazooka?

OK, review now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice line though 😅

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.

None yet

2 participants