Skip to content

Remove unused variable - #4425

Merged
Amaury Levé (Evangelink) merged 1 commit into
microsoft:mainfrom
mthalman:analyzer-fix
Apr 28, 2023
Merged

Remove unused variable#4425
Amaury Levé (Evangelink) merged 1 commit into
microsoft:mainfrom
mthalman:analyzer-fix

Conversation

@mthalman

Copy link
Copy Markdown
Member

When using the latest build of .NET 8 Preview 4 SDK to build the vstest repo, it results in the following analyzer error:

/repos/dotnet/src/vstest/artifacts/source-build/self/src/src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs(96,65): error IDE0059: Unnecessary assignment of a value to 'childNodeNavigator' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0059) [/repos/dotnet/src/vstest/artifacts/source-build/self/src/src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj::TargetFramework=net8.0]

This was caught by the Source-build bootstrapping build workflow which uses a source-built version of the latest SDK to build the product's repos.

Fixed by removing the unused variable.

Loading
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