Fix new warnings

This commit is contained in:
Nikolaj Geisle
2022-04-21 11:20:12 +02:00
parent 060e0181a7
commit b67810cc69
21 changed files with 51 additions and 46 deletions

View File

@@ -343,8 +343,8 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache
{
var node = link.Value;
if (node == null) continue;
var contentTypeId = node.ContentType?.Id;
if (contentTypeId is null || index.TryGetValue(contentTypeId, out var contentType) == false) continue;
var contentTypeId = node.ContentType.Id;
if (index.TryGetValue(contentTypeId, out var contentType) == false) continue;
SetValueLocked(_contentNodes, node.Id, new ContentNode(node, _publishedModelFactory, contentType));
}
}