mirror of https://github.com/ppy/osu
Remove weird `.Run(r => r.Write(...))` construction
This commit is contained in:
parent
b6e9422aa4
commit
746212be7b
|
@ -432,15 +432,13 @@ public void TestImport_ThenModifyMapWithScore_ThenImport()
|
|||
await createScoreForBeatmap(realm.Realm, imported.Beatmaps.First());
|
||||
|
||||
// imitate making local changes via editor
|
||||
realm.Run(r =>
|
||||
{
|
||||
r.Write(() =>
|
||||
// ReSharper disable once MethodHasAsyncOverload
|
||||
realm.Write(_ =>
|
||||
{
|
||||
BeatmapInfo beatmap = imported.Beatmaps.First();
|
||||
beatmap.Hash = "new_hash";
|
||||
beatmap.ResetOnlineInfo();
|
||||
});
|
||||
});
|
||||
|
||||
// for now, making changes to a beatmap doesn't remove the backlink from the score to the beatmap.
|
||||
// the logic of ensuring that scores match the beatmap is upheld via comparing the hash in usages (see: https://github.com/ppy/osu/pull/22539).
|
||||
|
|
Loading…
Reference in New Issue