[PR #916] Replace null checks with IsEmpty property for ReadOnlySpan<char> #1310

Open
opened 2026-01-29 14:52:56 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/916
Author: @prozolic
Created: 11/28/2025
Status: 🔄 Open

Base: masterHead: pullreq


📝 Commits (1)

  • 2838f8b Replace null checks with IsEmpty property for ReadOnlySpan

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/Markdig/Helpers/LinkHelper.cs (+2 -2)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/xoofx/markdig/pull/916 **Author:** [@prozolic](https://github.com/prozolic) **Created:** 11/28/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `pullreq` --- ### 📝 Commits (1) - [`2838f8b`](https://github.com/xoofx/markdig/commit/2838f8b3fff04fa5e502a4ba1d2d7e33e7a56e59) Replace null checks with IsEmpty property for ReadOnlySpan<char> ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig/Helpers/LinkHelper.cs` (+2 -2) </details> ### 📄 Description This PR replace null checks with `IsEmpty` property for `ReadOnlySpan<char>`. The change suppresses [CA2265](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2265) warnings. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 14:52:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1310