Use out var syntax
This commit is contained in:
@@ -53,8 +53,7 @@ namespace OpenRA.Graphics
|
||||
|
||||
public Color GetRemappedColor(Color original, int index)
|
||||
{
|
||||
Color c;
|
||||
return remapColors.TryGetValue(index, out c)
|
||||
return remapColors.TryGetValue(index, out var c)
|
||||
? c : original;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user