Skip to content

Commit

Permalink
Dependency Checking: Fast Return Empty if no Dependencies Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Mar 21, 2024
1 parent 2fe2dae commit 40eda28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Reloaded.Mod.Launcher.Lib/Update.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ public static async Task<ModDependencyResolveResult> GetMissingDependenciesToDow
{
// Get missing dependencies for this update loop.
var missingDeps = CheckMissingDependencies();

if (missingDeps.AllAvailable)
return ModDependencyResolveResult.Combine(Enumerable.Empty<ModDependencyResolveResult>());

// Get Dependencies
var resolver = DependencyResolverFactory.GetInstance(IoC.Get<AggregateNugetRepository>());

Expand Down

0 comments on commit 40eda28

Please sign in to comment.