mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Remove all unnecessary parenthesis where object initialisers are used
Enforces at CI.
This commit is contained in:
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Settings
|
||||
if (text == null)
|
||||
{
|
||||
// construct lazily for cases where the label is not needed (may be provided by the Control).
|
||||
Add(text = new OsuSpriteText() { Depth = 1 });
|
||||
Add(text = new OsuSpriteText { Depth = 1 });
|
||||
}
|
||||
|
||||
text.Text = value;
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Settings
|
||||
where T : struct, IEquatable<T>
|
||||
where U : SliderBar<T>, new()
|
||||
{
|
||||
protected override Drawable CreateControl() => new U()
|
||||
protected override Drawable CreateControl() => new U
|
||||
{
|
||||
Margin = new MarginPadding { Top = 5, Bottom = 5 },
|
||||
RelativeSizeAxes = Axes.X
|
||||
|
Reference in New Issue
Block a user