Skip to content

Commit 56a1efd

Browse files
Copilotniemyjski
andcommitted
Use C# 12 collection expression syntax for cleaner initialization
Co-authored-by: niemyjski <[email protected]>
1 parent 56f2daa commit 56a1efd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exceptionless.Web/Controllers/OrganizationController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ public async Task<ActionResult<ChangePlanResult>> ChangePlanAsync(string id, str
476476
}
477477
else
478478
{
479-
var update = new SubscriptionUpdateOptions { Items = new List<SubscriptionItemOptions>() };
480-
var create = new SubscriptionCreateOptions { Customer = organization.StripeCustomerId, Items = new List<SubscriptionItemOptions>() };
479+
var update = new SubscriptionUpdateOptions { Items = [] };
480+
var create = new SubscriptionCreateOptions { Customer = organization.StripeCustomerId, Items = [] };
481481
bool cardUpdated = false;
482482

483483
var customerUpdateOptions = new CustomerUpdateOptions { Description = organization.Name };

0 commit comments

Comments
 (0)