don't assert twice

This commit is contained in:
ambdroid 2024-03-24 19:07:34 -04:00
parent 3e2c31100d
commit 84417b9adf

View file

@ -69,10 +69,6 @@ public static class ContextListExt
if (p.SortProperty == SortProperty.CreationDate) p.IncludeCreated = true; if (p.SortProperty == SortProperty.CreationDate) p.IncludeCreated = true;
} }
// Make sure the options are valid
p.AssertIsValid();
// Done!
return p; return p;
} }
@ -117,7 +113,13 @@ public static class ContextListExt
public static ListOptions ParseListOptionsGroup(this Context ctx, LookupContext lookupCtx) public static ListOptions ParseListOptionsGroup(this Context ctx, LookupContext lookupCtx)
{ {
return ctx.ParseListOptions(lookupCtx); var p = ctx.ParseListOptions(lookupCtx);
// Make sure the options are valid
p.AssertIsValid();
// Done!
return p;
} }
public static async Task RenderMemberList(this Context ctx, LookupContext lookupCtx, public static async Task RenderMemberList(this Context ctx, LookupContext lookupCtx,