Skip to content

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
Copilot finished reviewing on behalf of prozolic November 28, 2025 23:13
Copy link

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.

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.

1 participant