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 <jasonelkin86@gmail.com>

* Update src/Umbraco.Core/Services/MediaServiceExtensions.cs

Co-authored-by: Jason Elkin <jasonelkin86@gmail.com>

* Update src/Umbraco.Infrastructure/Persistence/Repositories/Implement/CreatedPackageSchemaRepository.cs

Co-authored-by: Jason Elkin <jasonelkin86@gmail.com>

* Make extensions non nullable

* Update src/Umbraco.Infrastructure/Persistence/Repositories/Implement/CreatedPackageSchemaRepository.cs

Co-authored-by: Jason Elkin <jasonelkin86@gmail.com>

---------

Co-authored-by: Jason Elkin <jasonelkin86@gmail.com>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
This commit is contained in:
Bjarne Fyrstenborg
2024-03-13 15:20:31 +01:00
committed by GitHub
parent 36bb1c9d78
commit 3fdf43cff5

View File

@@ -19,7 +19,7 @@ public static class ContentServiceExtensions
private static readonly Regex AnchorRegex = new(@"<a id=\\*""(.*?)\\*"">", RegexOptions.Compiled);
private static readonly string[] _propertyTypesWithRte = new[] { Constants.PropertyEditors.Aliases.RichText, Constants.PropertyEditors.Aliases.BlockList, Constants.PropertyEditors.Aliases.BlockGrid };
public static IEnumerable<IContent>? GetByIds(this IContentService contentService, IEnumerable<Udi> ids)
public static IEnumerable<IContent> GetByIds(this IContentService contentService, IEnumerable<Udi> ids)
{
var guids = new List<GuidUdi>();
foreach (Udi udi in ids)