mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Code quality
This commit is contained in:
parent
6000e14668
commit
218c04c174
@ -57,7 +57,7 @@ namespace osu.Game.Screens.Edit
|
||||
}
|
||||
}
|
||||
|
||||
protected override Drawable CreateHeader(int index, TableColumn column) => new HeaderText(column?.Header ?? default);
|
||||
protected override Drawable CreateHeader(int index, TableColumn? column) => new HeaderText(column?.Header ?? default);
|
||||
|
||||
private partial class HeaderText : OsuSpriteText
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
Content = null;
|
||||
BackgroundFlow.Clear();
|
||||
|
||||
if (value?.Any() != true)
|
||||
if (!value.Any())
|
||||
return;
|
||||
|
||||
foreach (var group in value)
|
||||
@ -67,7 +67,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
}, true);
|
||||
}
|
||||
|
||||
private void updateSelectedGroup() => SetRowSelected(selectedGroup?.Value);
|
||||
private void updateSelectedGroup() => SetRowSelected(selectedGroup.Value);
|
||||
|
||||
private TableColumn[] createHeaders()
|
||||
{
|
||||
|
@ -141,7 +141,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
changeHandler?.SaveState();
|
||||
}, true);
|
||||
|
||||
table.OnRowSelected += (drawable) => scroll.ScrollIntoView(drawable);
|
||||
table.OnRowSelected += drawable => scroll.ScrollIntoView(drawable);
|
||||
}
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Screens.Edit.Verify
|
||||
Content = null;
|
||||
BackgroundFlow.Clear();
|
||||
|
||||
if (value == null)
|
||||
if (!value.Any())
|
||||
return;
|
||||
|
||||
foreach (var issue in value)
|
||||
|
Loading…
Reference in New Issue
Block a user