-
Notifications
You must be signed in to change notification settings - Fork 9
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
Enable nullable globally and fix issues #21
Conversation
…ption where nullability covers it to reduce runtime code (this is a change to public surface area - can be reverted). Some opportunistic code cleanup.
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.
This is great work. Takes care of a lot of null issues, Upgrades string.Format to string interpolation. Eliminates some unnecessary accessors.
It's a .Net version upgrade: most of the null features are introduced in C# 8.
(I had to look some of them up)
I am confident this is a good improvement to the project.
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's some places we could replace null suppression with input validation (early validation makes for smaller stack traces!), but that can be saved for another time.
Fantastic PR, I reviewed every line and have other no notes. Approved.
This will publish as soon as it merges, for use in ipfs-shipyard/net-ipfs-http-client#21 |
@Arlodotexe your review was reset so this never committed or published. When done I'll push a dependency update to ipfs-shipyard/net-ipfs-http-client#21 |
Whoops! Sorry about that, let's kick it off. |
For #19 . Remove some ArgumentNullException where nullability covers it to reduce runtime code (this is a change to public surface area, can be reverted - see changes in unit tests). Some opportunistic code cleanup ahead of #9 .