Skip to content

Replace null checks with IsEmpty property for ReadOnlySpan<char>#916

Merged
xoofx merged 1 commit intoxoofx:masterfrom
prozolic:pullreq
Jan 30, 2026
Merged

Replace null checks with IsEmpty property for ReadOnlySpan<char>#916
xoofx merged 1 commit intoxoofx:masterfrom
prozolic:pullreq

Conversation

@prozolic
Copy link
Contributor

This PR replace null checks with IsEmpty property for ReadOnlySpan<char>.
The change suppresses CA2265 warnings.

Copilot AI review requested due to automatic review settings November 28, 2025 23:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to replace null checks with the IsEmpty property for ReadOnlySpan<char> variables to suppress CA2265 warnings. The changes update the LinkHelper.Urilize method to use span-based empty checks instead of null checks.

  • Replaces null assignment with ReadOnlySpan<char>.Empty for the normalized variable
  • Changes null check from normalized != null to !normalized.IsEmpty

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@xoofx xoofx merged commit 3602433 into xoofx:master Jan 30, 2026
9 checks passed
@prozolic prozolic deleted the pullreq branch February 12, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants