1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Fix CodeFactor issues

This commit is contained in:
Willy Tu 2019-12-18 19:26:35 -08:00
parent 531ac16743
commit b67f986058
2 changed files with 6 additions and 5 deletions

View File

@ -19,10 +19,8 @@ namespace osu.Game.Screens.Select.Leaderboards
{
public class BeatmapLeaderboard : Leaderboard<BeatmapLeaderboardScope, ScoreInfo>
{
public Action<ScoreInfo> ScoreSelected;
[Resolved]
private RulesetStore rulesets { get; set; }

View File

@ -15,9 +15,10 @@ namespace osu.Game.Screens.Select
{
private ScoreManager scoreManager;
public LocalScoreDeleteDialog (ScoreInfo score)
public LocalScoreDeleteDialog(ScoreInfo score)
{
try{
try
{
string accuracy = string.Format(score?.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", score?.Accuracy);
BodyText = $@"{score} {Environment.NewLine} Rank: {score.Rank} - Max Combo: {score.MaxCombo} - {accuracy}";
@ -35,7 +36,9 @@ namespace osu.Game.Screens.Select
Text = @"No, I'm still attached.",
},
};
} catch (Exception e){
}
catch (Exception e)
{
Logger.Error(e, "ScoreInfo cannot be null!");
HeaderText = $@"ScoreInfo cannot be null!";