Use out var syntax
This commit is contained in:
@@ -52,8 +52,7 @@ namespace OpenRA.Mods.Common.Pathfinder
|
||||
|
||||
public List<CPos> Retrieve(string key)
|
||||
{
|
||||
CachedPath cached;
|
||||
if (cachedPaths.TryGetValue(key, out cached))
|
||||
if (cachedPaths.TryGetValue(key, out var cached))
|
||||
{
|
||||
if (IsExpired(cached))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user