Skip to content

Conversation

Arkatufus
Copy link
Contributor

Compiler complaining that the tagged variable might not have been initialized properly.

Changes

Explicitly initialize the tag list

private JournalEntry ToJournalEntry(IPersistentRepresentation message)
{
object payload = message.Payload;
List<string> tags;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to an string[] and use Array.Empty<string> to prevent allocations where not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Aaronontheweb Aaronontheweb merged commit 816d098 into akkadotnet:dev Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants