-
Notifications
You must be signed in to change notification settings - Fork 31
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
Issue#63 - Adding Nullable checks #74
base: main
Are you sure you want to change the base?
Issue#63 - Adding Nullable checks #74
Conversation
ssonthal
commented
Feb 23, 2024
•
edited
Loading
edited

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.
Could you check the entire solution if possible? dotnet build .\src\libp2p\Libp2p.sln
reports more issues
Hey @flcl42, for the solution level, I was previously getting 60 warnings. I have reduced them down to 25 now. But now, I am not sure about the null checks because they are causing some other issues when adding nullables there. |
You can propose solution and let me help you with comments |
} | ||
if (!channel.IsClosed) | ||
if (channel != null && !channel.IsClosed) |
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.
channel is not nullable, so you can omit this check
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.
Okay