Skip to content

Commit

Permalink
Remove conditional as it is not needed after modifying input manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcPMS committed Nov 13, 2024
1 parent 3998e64 commit 734ff87
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/AppInstallerRepositoryCore/PackageTrackingCatalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,11 @@ namespace AppInstaller::Repository
auto& index = m_implementation->Source->GetIndex();

// Strip ARP version information from the manifest if it is present
auto arpVersionRange = manifest.GetArpVersionRange();
if (!arpVersionRange.IsEmpty())
for (auto& arpRangeRemovedInstaller : manifest.Installers)
{
for (auto& arpRangeRemovedInstaller : manifest.Installers)
for (auto& arpRangeRemovedEntry : arpRangeRemovedInstaller.AppsAndFeaturesEntries)
{
for (auto& arpRangeRemovedEntry : arpRangeRemovedInstaller.AppsAndFeaturesEntries)
{
arpRangeRemovedEntry.DisplayVersion.clear();
}
arpRangeRemovedEntry.DisplayVersion.clear();
}
}

Expand Down

0 comments on commit 734ff87

Please sign in to comment.