From 3fdf43cff58167dab9e9b67ba50de9eede66e773 Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Wed, 13 Mar 2024 15:20:31 +0100 Subject: [PATCH] Make `GetByIds` in ContentService extensions non nullable (#15736) * Make GetByIds in MediaService extensions nullable * Update src/Umbraco.Core/Packaging/PackagesRepository.cs Co-authored-by: Jason Elkin * Update src/Umbraco.Core/Services/MediaServiceExtensions.cs Co-authored-by: Jason Elkin * Update src/Umbraco.Infrastructure/Persistence/Repositories/Implement/CreatedPackageSchemaRepository.cs Co-authored-by: Jason Elkin * Make extensions non nullable * Update src/Umbraco.Infrastructure/Persistence/Repositories/Implement/CreatedPackageSchemaRepository.cs Co-authored-by: Jason Elkin --------- Co-authored-by: Jason Elkin Co-authored-by: Sebastiaan Janssen --- src/Umbraco.Core/Services/ContentServiceExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Services/ContentServiceExtensions.cs b/src/Umbraco.Core/Services/ContentServiceExtensions.cs index 893a3eeaf5..cac93c2426 100644 --- a/src/Umbraco.Core/Services/ContentServiceExtensions.cs +++ b/src/Umbraco.Core/Services/ContentServiceExtensions.cs @@ -19,7 +19,7 @@ public static class ContentServiceExtensions private static readonly Regex AnchorRegex = new(@"", RegexOptions.Compiled); private static readonly string[] _propertyTypesWithRte = new[] { Constants.PropertyEditors.Aliases.RichText, Constants.PropertyEditors.Aliases.BlockList, Constants.PropertyEditors.Aliases.BlockGrid }; - public static IEnumerable? GetByIds(this IContentService contentService, IEnumerable ids) + public static IEnumerable GetByIds(this IContentService contentService, IEnumerable ids) { var guids = new List(); foreach (Udi udi in ids)