Code quality

This commit is contained in:
Jai Sharma 2022-11-27 03:23:08 +00:00
parent 6000e14668
commit 218c04c174
4 changed files with 5 additions and 5 deletions

View File

@ -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
{

View File

@ -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()
{

View File

@ -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)

View File

@ -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)