Browse Source

Added use of short foreach

pull/1756/head
veysel mutlu 3 years ago
parent
commit
9fda3b548c
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/Services/Catalog/Catalog.API/Controllers/CatalogController.cs

+ 1
- 4
src/Services/Catalog/Catalog.API/Controllers/CatalogController.cs View File

@ -304,10 +304,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
var baseUri = _settings.PicBaseUrl; var baseUri = _settings.PicBaseUrl;
var azureStorageEnabled = _settings.AzureStorageEnabled; var azureStorageEnabled = _settings.AzureStorageEnabled;
foreach (var item in items)
{
item.FillProductUrl(baseUri, azureStorageEnabled: azureStorageEnabled);
}
items.ForEach(item => { item.FillProductUrl(baseUri, azureStorageEnabled: azureStorageEnabled); });
return items; return items;
} }


Loading…
Cancel
Save