Fix up to Macros in Core project

This commit is contained in:
Nikolaj Geisle
2022-01-13 09:27:37 +01:00
parent 521023372b
commit b6d5465b49
110 changed files with 537 additions and 451 deletions

View File

@@ -40,8 +40,8 @@ namespace Umbraco.Core.Collections
return obj!;
}
public T? PeekStack() => _linkedList.First.Value;
public T? PeekStack() => _linkedList.First is not null ? _linkedList.First.Value : default;
public T? PeekQueue() => _linkedList.Last.Value;
public T? PeekQueue() => _linkedList.Last is not null ? _linkedList.Last.Value : default;
}
}