Deal with fixme in Umbraco.Core

This commit is contained in:
Stephan
2019-01-21 15:39:19 +01:00
parent 735c2ccfd7
commit 4a0b969777
114 changed files with 186 additions and 693 deletions

View File

@@ -18,8 +18,7 @@ namespace Umbraco.Core.Cache
/// <inheritdoc />
public virtual object Get(string key)
{
// fixme throws if non-existing, shouldn't it return null?
return Items[key];
return Items.TryGetValue(key, out var value) ? value : null;
}
/// <inheritdoc />