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

Enable nullable and correct usages #89

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Enable nullable and correct usages #89

merged 1 commit into from
Jan 5, 2024

Conversation

pakdev
Copy link
Collaborator

@pakdev pakdev commented Jan 3, 2024

Justification

"All project templates starting with .NET 6 (C# 10) enable the nullable context for the project.". This change enables nullable reference types as they're the future and they make code more explicit.

Implementation

Enabled nullable, fixed warnings, and updated visible usages of var == null / var != null to var is null / var is not null

Testing

Existing tests pass

@pakdev pakdev requested a review from jryckman as a code owner January 3, 2024 21:02
@jryckman jryckman merged commit 4af1e79 into ni:main Jan 5, 2024
1 check passed
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.

2 participants