Skip to content

Commit

Permalink
[C#] fix: Change bracket notation to object initializer (#1661)
Browse files Browse the repository at this point in the history
## Linked issues

closes: #minor (issue number)

## Details
- Change bracket notation (C#12 feature) to object initializer since it
is not supported in .NET 6.


## Attestation Checklist

- [x] My code follows the style guidelines of this project

- I have checked for/fixed spelling, linting, and other errors
- I have commented my code for clarity
- I have made corresponding changes to the documentation (updating the
doc strings in the code is sufficient)
- My changes generate no new warnings
- I have added tests that validates my changes, and provides sufficient
test coverage. I have tested with:
  - Local testing
  - E2E testing in Teams
- New and existing unit tests pass locally with my changes
  • Loading branch information
singhk97 authored May 16, 2024
1 parent ffda3ac commit 54fe1f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static string FormatCitationsResponse(string text)
}
else
{
List<ClientCitation> usedCitations = [];
List<ClientCitation> usedCitations = new();
foreach (Match match in matches)
{
citations.Find((citation) =>
Expand Down

0 comments on commit 54fe1f0

Please sign in to comment.