C#: Address review comment.

This commit is contained in:
Michael Nebel
2026-04-22 10:21:10 +02:00
parent ca0c2746fc
commit 5ff4b43732

View File

@@ -30,8 +30,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
private readonly DependencyDirectory emptyPackageDirectory;
private readonly ILogger logger;
private readonly ICompilationInfoContainer compilationInfoContainer;
private readonly Lazy<bool> lazyCheckNugetFeedResponsiveness = new(() => EnvironmentVariables.GetBooleanOptOut(EnvironmentVariableNames.CheckNugetFeedResponsiveness));
private bool CheckNugetFeedResponsiveness => lazyCheckNugetFeedResponsiveness.Value;
private bool CheckNugetFeedResponsiveness { get; } = EnvironmentVariables.GetBooleanOptOut(EnvironmentVariableNames.CheckNugetFeedResponsiveness);
private HashSet<string> PrivateRegistryFeeds => dependabotProxy?.RegistryURLs ?? [];
private bool HasPrivateRegistryFeeds => PrivateRegistryFeeds.Any();