Use out var syntax
This commit is contained in:
@@ -310,8 +310,7 @@ namespace OpenRA.Traits
|
||||
|
||||
public FrozenActor FromID(uint id)
|
||||
{
|
||||
FrozenActor fa;
|
||||
if (!frozenActorsById.TryGetValue(id, out fa))
|
||||
if (!frozenActorsById.TryGetValue(id, out var fa))
|
||||
return null;
|
||||
|
||||
return fa;
|
||||
|
||||
@@ -253,8 +253,7 @@ namespace OpenRA.Traits
|
||||
|
||||
public void RemoveSource(object key)
|
||||
{
|
||||
ShroudSource state;
|
||||
if (!sources.TryGetValue(key, out state))
|
||||
if (!sources.TryGetValue(key, out var state))
|
||||
return;
|
||||
|
||||
foreach (var puv in state.ProjectedCells)
|
||||
|
||||
Reference in New Issue
Block a user