Skip to content

Commit ec8ecee

Browse files
Add comments
1 parent 0bceaf3 commit ec8ecee

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/ImageSharp.Web/Commands/PresetOnlyQueryCollectionRequestParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public CommandCollection ParseRequestCommands(HttpContext context)
3535
{
3636
if (context.Request.Query.Count == 0 || !context.Request.Query.ContainsKey(QueryKey))
3737
{
38+
// We return new here and below to ensure the collection is still mutable via events.
3839
return new();
3940
}
4041

src/ImageSharp.Web/Commands/QueryCollectionRequestParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public CommandCollection ParseRequestCommands(HttpContext context)
1818
{
1919
if (context.Request.Query.Count == 0)
2020
{
21+
// We return new to ensure the collection is still mutable via events.
2122
return new();
2223
}
2324

0 commit comments

Comments
 (0)