Skip to content

Conversation

timothycoleman
Copy link
Contributor

This simplifies the semantics a bit and avoids the risk of a null array being accidentally converted to an empty ReadOnlyMemory<>? when it should have stayed null e.g. this cast is no longer required in the MultiStreamWritesTests: eventStreamIndexes is null ? (LowAllocReadOnlyMemory<int>?)null : eventStreamIndexes

…stream

This simplifies the semantics a bit and avoids the risk of a null array being accidentally converted to an empty ReadOnlyMemory<>? when it should have stayed null
e.g. this cast is no longer required in the MultiStreamWritesTests: `eventStreamIndexes is null ? (LowAllocReadOnlyMemory<int>?)null : eventStreamIndexes`
Copy link
Contributor

github-actions bot commented May 13, 2025

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@timothycoleman timothycoleman merged commit a93cc7c into master May 13, 2025
12 checks passed
@timothycoleman timothycoleman deleted the timothycoleman/use-empty-instead-of-null branch May 13, 2025 08:47
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