From fee32bd6ec6bcd4bea7314ef85a8f1fb9a4dc8c3 Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Mon, 6 Nov 2023 17:58:01 +0100 Subject: [PATCH] Remove parameter value/return nullability in `IImageSourceParser`, `ILocalLinkParser` and `IMacroParser` (#15130) * Align nullability of ILocalLinkParser with other rich text content parsers (IMacroParser and IImageSourceParser). * Remove value/return nullability in IImageSourceParser, ILocalLinkParser and IMacroParser --------- Co-authored-by: Ronald Barendse --- src/Umbraco.Core/Deploy/IImageSourceParser.cs | 4 ++-- src/Umbraco.Core/Deploy/IMacroParser.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Core/Deploy/IImageSourceParser.cs b/src/Umbraco.Core/Deploy/IImageSourceParser.cs index 7b9e3f5e96..0180ec0b3d 100644 --- a/src/Umbraco.Core/Deploy/IImageSourceParser.cs +++ b/src/Umbraco.Core/Deploy/IImageSourceParser.cs @@ -12,7 +12,7 @@ public interface IImageSourceParser /// A list of dependencies. /// The parsed value. /// Turns src="/media/..." into src="umb://media/..." and adds the corresponding udi to the dependencies. - string? ToArtifact(string? value, ICollection dependencies); + string ToArtifact(string value, ICollection dependencies); /// /// Parses an artifact property value and produces an Umbraco property value. @@ -20,5 +20,5 @@ public interface IImageSourceParser /// The artifact property value. /// The parsed value. /// Turns umb://media/... into /media/.... - string? FromArtifact(string? value); + string FromArtifact(string value); } diff --git a/src/Umbraco.Core/Deploy/IMacroParser.cs b/src/Umbraco.Core/Deploy/IMacroParser.cs index 1945b2bdb3..fed9dcc3af 100644 --- a/src/Umbraco.Core/Deploy/IMacroParser.cs +++ b/src/Umbraco.Core/Deploy/IMacroParser.cs @@ -8,14 +8,14 @@ public interface IMacroParser /// Property value. /// A list of dependencies. /// Parsed value. - string? ToArtifact(string? value, ICollection dependencies); + string ToArtifact(string value, ICollection dependencies); /// /// Parses an artifact property value and produces an Umbraco property value. /// /// Artifact property value. /// Parsed value. - string? FromArtifact(string? value); + string FromArtifact(string value); /// /// Tries to replace the value of the attribute/parameter with a value containing a converted identifier.