Browse Source

Add comments to clarify the return value in `WebRequestResources`.

pull/23451/head
maliming 1 year ago
parent
commit
1314d1a975
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  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);
// Create a new list as return value to avoid any changes to the list will affect the value in Resources dictionary.
return resources.ToList();
}
}

Loading…
Cancel
Save