Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/Nethermind/Nethermind.Core/Caching/LruCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}

Expand Down
Loading