-
Notifications
You must be signed in to change notification settings - Fork 786
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
remove incorrect null suppressions #6075
base: main
Are you sure you want to change the base?
remove incorrect null suppressions #6075
Conversation
@@ -13,16 +13,16 @@ | |||
var appBuilder = WebApplication.CreateBuilder(args); | |||
|
|||
// Note: Switch between Zipkin/OTLP/Console by setting UseTracingExporter in appsettings.json. | |||
var tracingExporter = appBuilder.Configuration.GetValue("UseTracingExporter", defaultValue: "console")!.ToLowerInvariant(); |
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.
Hi @SimonCropp, if you can include your justification for why these are incorrect, that will make the code review much easier. Otherwise our reviews need to do more work to individually verify each of these statements.
For example; This looks safe to remove because by supplying a defaultValue, this method will never return null.
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.
the IDE highlights them as redudnant, since it know the nullability in each case, and i double checked each of them. are there any you think need more justification
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.
What IDE or plugin are you using? I'm not seeing the same highlights in Visual Studio but I would like to.
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.
@TimothyMothra Rider. but you would get the same using R#
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.
One minor conflict with main branch. Everything else LGTM
Fixes #
Design discussion issue #
Changes
remove incorrect null suppressions that are not possible at runtime
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes