Skip to content

Commit

Permalink
Fix bug when determining transitive NoWarn
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl committed Sep 9, 2021
1 parent f4ae349 commit 6e9d0d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private static PackageSpecificWarningProperties ExtractTransitiveNoWarnPropertie
// Merge the node's package specific no warn to the one in the path.
var mergedPackageSpecificNoWarn = MergePackageSpecificNoWarn(pathPackageSpecificNoWarn, nodePackageSpecificNoWarn);

AddDependenciesToQueue(nodeDependencies,
AddDependenciesToQueue(nodeDependencies.Where(i => !seen.ContainsKey(i.Name)),
queue,
mergedProjectWideNoWarn,
mergedPackageSpecificNoWarn);
Expand Down Expand Up @@ -228,7 +228,7 @@ private static PackageSpecificWarningProperties ExtractTransitiveNoWarnPropertie
}
}

AddDependenciesToQueue(nodeDependencies,
AddDependenciesToQueue(nodeDependencies.Where(i => !seen.ContainsKey(i.Name)),
queue,
pathWarningProperties.ProjectWide,
pathWarningProperties.PackageSpecific);
Expand Down

0 comments on commit 6e9d0d3

Please sign in to comment.