Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nkolev92 committed May 28, 2024
1 parent 29ece73 commit 0b08ee6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ private Dictionary<string, HashSet<string>> GetPackagesConfigToProjectsPath(Pack
{
var packagesConfig = ((PackagesConfigProjectRestoreMetadata)project.RestoreMetadata).PackagesConfigPath;

if (configToProjectPath.TryGetValue(packagesConfig, out var existingValue))
if (configToProjectPath.TryGetValue(packagesConfig, out HashSet<string> existingValue))
{
existingValue.Add(project.FilePath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,6 @@ public void RestoreCommand_WithPackagesConfig_PackageWithVulnerabilities_RaisesW
r.AllOutput.Should().Contain($"Package 'packageA' 1.1.0 has a known high severity vulnerability");
}


[SkipMono()]
public void RestoreCommand_WithProjectWithPackagesConfig_DefaultSettings_PackageWithVulnerabilities_RaisesWarnings()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Http;
using System.Xml.Linq;
using FluentAssertions;
using NuGet.Commands;
Expand All @@ -21,7 +20,6 @@
using Test.Utility;
using Xunit;
using Xunit.Abstractions;
using static Microsoft.TeamFoundation.Common.Internal.NativeMethods;
using static NuGet.Frameworks.FrameworkConstants;

namespace Msbuild.Integration.Test
Expand Down

0 comments on commit 0b08ee6

Please sign in to comment.