Skip to content

fix some nullability in ShowTelemetryBannerFirstNoticeAsync - #6026

Closed
Simon Cropp (SimonCropp) wants to merge 2 commits into
microsoft:mainfrom
SimonCropp:fix-some-nullability-in-ShowTelemetryBannerFirstNoticeAsync
Closed

Simon Cropp (SimonCropp) wants to merge 2 commits into
microsoft:mainfrom
SimonCropp:fix-some-nullability-in-ShowTelemetryBannerFirstNoticeAsync

Conversation

@SimonCropp

Copy link
Copy Markdown
Contributor

No description provided.

ITestApplicationModuleInfo testApplicationModuleInfo = serviceProvider.GetTestApplicationModuleInfo();
#pragma warning disable RS0030 // Do not use banned APIs - There is no easy way to disable it for all members
string? directory = environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData, Environment.SpecialFolderOption.Create);
string directory = environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData, Environment.SpecialFolderOption.Create);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this will be null in some unit tests that mock IEnvironment.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Youssef1313

Copy link
Copy Markdown
Member

Closing stale PR. Feel free to reopen if you can fix the failing tests.

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