Compact lambda expressions in some (not all) places
This commit is contained in:
@@ -60,7 +60,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
this.modRules = modRules;
|
||||
|
||||
GetText = () => { return Text; };
|
||||
GetText = () => Text;
|
||||
GetColor = () => TextColor;
|
||||
GetColorDisabled = () => TextColorDisabled;
|
||||
GetContrastColor = () => ContrastColor;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace OpenRA.Widgets
|
||||
[ObjectCreator.UseCtor]
|
||||
public SpriteWidget(WorldRenderer worldRenderer)
|
||||
{
|
||||
GetPalette = () => { return Palette; };
|
||||
GetPalette = () => Palette;
|
||||
|
||||
this.worldRenderer = worldRenderer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user