diff --git a/src/Nethermind/Nethermind.Core/Caching/LruCache.cs b/src/Nethermind/Nethermind.Core/Caching/LruCache.cs index 727f21d6827..bc87e4e83ba 100644 --- a/src/Nethermind/Nethermind.Core/Caching/LruCache.cs +++ b/src/Nethermind/Nethermind.Core/Caching/LruCache.cs @@ -53,10 +53,7 @@ public TValue Get(TKey key) return value; } -#pragma warning disable 8603 - // fixed C# 9 - return default; -#pragma warning restore 8603 + return default!; } public bool TryGet(TKey key, out TValue value) @@ -70,10 +67,7 @@ public bool TryGet(TKey key, out TValue value) return true; } -#pragma warning disable 8601 - // fixed C# 9 - value = default; -#pragma warning restore 8601 + value = default!; return false; }