Remove extra unneded safety

This commit is contained in:
smoogipoo 2018-04-16 17:48:49 +09:00
parent b9220a1e29
commit 9af6ef1864
1 changed files with 0 additions and 8 deletions

View File

@ -255,23 +255,15 @@ private void updateScores()
PlaceholderState = PlaceholderState.Retrieving;
loading.Show();
var localBeatmap = Beatmap;
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value ?? Beatmap.Ruleset, Scope);
getScoresRequest.Success += r => Schedule(() =>
{
if (localBeatmap != Beatmap)
return;
Scores = r.Scores;
PlaceholderState = Scores.Any() ? PlaceholderState.Successful : PlaceholderState.NoScores;
});
getScoresRequest.Failure += e => Schedule(() =>
{
if (localBeatmap != Beatmap)
return;
if (e is OperationCanceledException)
return;