From 144fc2317f5c311d95dedee845bb18daf9a965e8 Mon Sep 17 00:00:00 2001 From: Nadia Bugarin Date: Fri, 9 Aug 2024 10:57:23 -0700 Subject: [PATCH] Fixed formatting --- .../NuGetUpdater.Core/Updater/SdkPackageUpdater.cs | 2 +- .../Utilities/DependencyConflictResolver.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs index 2999716d46..7eca5d6bba 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs @@ -24,7 +24,7 @@ public static async Task UpdateDependencyAsync( // Get the set of all top-level dependencies in the current project var topLevelDependencies = MSBuildHelper.GetTopLevelPackageDependencyInfos(buildFiles).ToArray(); - + if (!await DoesDependencyRequireUpdateAsync(repoRootPath, projectPath, tfms, topLevelDependencies, dependencyName, newDependencyVersion, logger)) { return; diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/DependencyConflictResolver.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/DependencyConflictResolver.cs index 2762af3fad..39167a99fa 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/DependencyConflictResolver.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/DependencyConflictResolver.cs @@ -92,14 +92,15 @@ public PackageManager(string repoRoot, string projectPath) continue; } - try { + try + { var existsInFeed = await feed.Exists( packageIdentity, includeUnlisted: false, SourceCacheContext, NullLogger.Instance, cancellationToken); - + if (!existsInFeed) { message.AppendLine($" package {packageIdentity} does not exist in {source.Name}");