1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Fix code quality issues

This commit is contained in:
TheWildTree 2020-02-27 22:35:02 +01:00
parent b65f5031a2
commit 92da7132cd
3 changed files with 4 additions and 7 deletions

View File

@ -175,7 +175,7 @@ namespace osu.Game.Overlays.Rankings
private class SpotlightsDropdownHeader : OsuDropdownHeader
{
public SpotlightsDropdownHeader() : base()
public SpotlightsDropdownHeader()
{
Height = 48;
Text.Font = OsuFont.GetFont(size: 15);

View File

@ -66,12 +66,9 @@ namespace osu.Game.Overlays.Rankings.Tables
[Resolved(canBeNull: true)]
private RankingsOverlay rankings { get; set; }
private readonly Country country;
public CountryName(Country country) : base(t => t.Font = OsuFont.GetFont(size: 12))
public CountryName(Country country)
: base(t => t.Font = OsuFont.GetFont(size: 12))
{
this.country = country;
AutoSizeAxes = Axes.X;
RelativeSizeAxes = Axes.Y;
TextAnchor = Anchor.CentreLeft;

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Rankings.Tables
{
}
protected override IEnumerable<string> GradeColumns() => new List<string>() { "SS", "S", "A" };
protected override IEnumerable<string> GradeColumns() => new List<string> { "SS", "S", "A" };
protected override TableColumn[] CreateAdditionalHeaders()
{