mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 11:10:13 +00:00
don't assert twice
This commit is contained in:
parent
3e2c31100d
commit
84417b9adf
1 changed files with 7 additions and 5 deletions
|
|
@ -69,10 +69,6 @@ public static class ContextListExt
|
|||
if (p.SortProperty == SortProperty.CreationDate) p.IncludeCreated = true;
|
||||
}
|
||||
|
||||
// Make sure the options are valid
|
||||
p.AssertIsValid();
|
||||
|
||||
// Done!
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
@ -117,7 +113,13 @@ public static class ContextListExt
|
|||
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue