Skip to content

Commit

Permalink
fix: minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
iadonkey committed Nov 27, 2024
1 parent 08e616c commit 204e362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwinpackCore/Core/TwinpackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,9 @@ private async Task<List<PackageItem>> AffectedPackagesAsync(List<PackageItem> pa
cache.Add(package);
}

foreach (var package in packages)
if (includeDependencies)
{
if (includeDependencies)
foreach (var package in packages)
{
var dependencies = package.PackageVersion?.Dependencies ?? new List<PackageVersionGetResponse>();
await AffectedPackagesAsync(
Expand Down

0 comments on commit 204e362

Please sign in to comment.