mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Galaxy: Small optimization to galaxyAPI::getFilteredDepotItemsVectorFromJson
Check if product id exists once instead of checking it again for each item
This commit is contained in:
parent
05e9409d52
commit
6f44277d4c
@ -513,9 +513,9 @@ std::vector<galaxyDepotItem> galaxyAPI::getFilteredDepotItemsVectorFromJson(cons
|
||||
items = this->getDepotItemsVector(depotHash, is_dependency);
|
||||
|
||||
// Set product id for items
|
||||
for (auto it = items.begin(); it != items.end(); ++it)
|
||||
if (!depot_product_id.empty())
|
||||
{
|
||||
if (!depot_product_id.empty())
|
||||
for (auto it = items.begin(); it != items.end(); ++it)
|
||||
{
|
||||
it->product_id = depot_product_id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user