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 NRT warnings in Word converter #1010

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Nov 24, 2023

Many of these are fixed with just pattern matching. I've been liberal with the null-forgiving operator in the Word document code itself, but most of the rest is fairly straightforward to handle safely.

Fixes #998.

Many of these are fixed with just pattern matching. I've been
liberal with the null-forgiving operator in the Word document code
itself, but most of the rest is fairly straightforward to handle
safely.

Fixes dotnet#998.
@jskeet jskeet requested a review from BillWagner November 24, 2023 08:03
@jskeet
Copy link
Contributor Author

jskeet commented Nov 27, 2023

(This one I'll be happy to merge with no others reviewing, once you're happy @BillWagner)

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This LGTM, at least for now.

As time permits, I think there are better ways to reduce the instance of !, but that can come as we work to update the dependencies and keep this working.

@jskeet jskeet merged commit d901dfb into dotnet:draft-v8 Nov 27, 2023
6 checks passed
@jskeet jskeet deleted the tools-nrt branch November 27, 2023 15:38
@jskeet
Copy link
Contributor Author

jskeet commented Nov 27, 2023

Ack. At least it's fairly easy to search for !. to find a lot of occurrences...

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.

Fix nullable reference type warnings in Word converter
2 participants