From 5ebade460fe72b38be4c5d82bcc26fe6ff08fb06 Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Fri, 31 Jan 2020 13:21:53 +0100 Subject: [PATCH] Removed language features not recognised by build checks. --- .../NuCache/PublishedSnapshotService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Infrastructure.PublishedCache/NuCache/PublishedSnapshotService.cs b/src/Umbraco.Infrastructure.PublishedCache/NuCache/PublishedSnapshotService.cs index a997b6ab06..5d99aa6aaa 100644 --- a/src/Umbraco.Infrastructure.PublishedCache/NuCache/PublishedSnapshotService.cs +++ b/src/Umbraco.Infrastructure.PublishedCache/NuCache/PublishedSnapshotService.cs @@ -170,8 +170,8 @@ namespace Umbraco.Web.PublishedCache.NuCache internal int GetMediaId(Guid udi) => GetId(_mediaStore, udi); internal Guid GetDocumentUid(int id) => GetUid(_contentStore, id); internal Guid GetMediaUid(int id) => GetUid(_mediaStore, id); - private int GetId(ContentStore store, Guid uid) => store.LiveSnapshot.Get(uid)?.Id ?? default; - private Guid GetUid(ContentStore store, int id) => store.LiveSnapshot.Get(id)?.Uid ?? default; + private int GetId(ContentStore store, Guid uid) => store.LiveSnapshot.Get(uid)?.Id ?? 0; + private Guid GetUid(ContentStore store, int id) => store.LiveSnapshot.Get(id)?.Uid ?? Guid.Empty; #endregion