Browse Source

Merge pull request #23451 from abpframework/WebRequestResources-Comment

Add comments to clarify the return value in `WebRequestResources`.
pull/23452/head
Halil İbrahim Kalkan 1 year ago
committed by GitHub
parent
commit
4939fb98c9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Resources/WebRequestResources.cs

2
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Resources/WebRequestResources.cs

@ -30,6 +30,8 @@ public class WebRequestResources : IWebRequestResources, IScopedDependency
} }
Resources.Add(path, resources); Resources.Add(path, resources);
// Create a new list as return value to avoid any changes to the list will affect the value in Resources dictionary.
return resources.ToList(); return resources.ToList();
} }
} }

Loading…
Cancel
Save