mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 12:42:54 +08:00
Fix code quality
This commit is contained in:
parent
35eddf35c5
commit
49154c0e23
@ -170,7 +170,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
BeatmapInfo = beatmap.Beatmaps.First(),
|
BeatmapInfo = beatmap.Beatmaps.First(),
|
||||||
Ruleset = ruleset ?? new OsuRuleset().RulesetInfo,
|
Ruleset = ruleset ?? new OsuRuleset().RulesetInfo,
|
||||||
User = new GuestUser(),
|
User = new GuestUser(),
|
||||||
}).Value;
|
})!.Value;
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert($"import {i} succeeded", () => imported != null);
|
AddAssert($"import {i} succeeded", () => imported != null);
|
||||||
|
@ -104,7 +104,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
Files = { new RealmNamedFileUsage(new RealmFile { Hash = $"{i}" }, string.Empty) }
|
Files = { new RealmNamedFileUsage(new RealmFile { Hash = $"{i}" }, string.Empty) }
|
||||||
};
|
};
|
||||||
|
|
||||||
importedScores.Add(scoreManager.Import(score).Value);
|
importedScores.Add(scoreManager.Import(score)!.Value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1200,6 +1200,7 @@ namespace osu.Game.Screens.Play
|
|||||||
var importableScore = score.ScoreInfo.DeepClone();
|
var importableScore = score.ScoreInfo.DeepClone();
|
||||||
|
|
||||||
var imported = scoreManager.Import(importableScore, replayReader);
|
var imported = scoreManager.Import(importableScore, replayReader);
|
||||||
|
Debug.Assert(imported != null);
|
||||||
|
|
||||||
imported.PerformRead(s =>
|
imported.PerformRead(s =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user