Fix IDE0005 and IDE0034

This commit is contained in:
Huo Yaoyuan
2022-05-02 20:07:53 +08:00
parent 4f16da8932
commit 7cf4dabe29
6 changed files with 6 additions and 9 deletions

View File

@ -126,7 +126,7 @@ namespace osu.Game.Overlays.Rankings
startDateColumn.Value = dateToString(response.Spotlight.StartDate);
endDateColumn.Value = dateToString(response.Spotlight.EndDate);
mapCountColumn.Value = response.BeatmapSets.Count.ToLocalisableString(@"N0");
participantsColumn.Value = response.Spotlight.Participants?.ToLocalisableString(@"N0") ?? default(LocalisableString);
participantsColumn.Value = response.Spotlight.Participants?.ToLocalisableString(@"N0") ?? default;
}
private LocalisableString dateToString(DateTimeOffset date) => date.ToLocalisableString(@"yyyy-MM-dd");