mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Remove weird .Run(r => r.Write(...))
construction
This commit is contained in:
parent
b6e9422aa4
commit
746212be7b
@ -432,14 +432,12 @@ namespace osu.Game.Tests.Database
|
|||||||
await createScoreForBeatmap(realm.Realm, imported.Beatmaps.First());
|
await createScoreForBeatmap(realm.Realm, imported.Beatmaps.First());
|
||||||
|
|
||||||
// imitate making local changes via editor
|
// imitate making local changes via editor
|
||||||
realm.Run(r =>
|
// ReSharper disable once MethodHasAsyncOverload
|
||||||
|
realm.Write(_ =>
|
||||||
{
|
{
|
||||||
r.Write(() =>
|
BeatmapInfo beatmap = imported.Beatmaps.First();
|
||||||
{
|
beatmap.Hash = "new_hash";
|
||||||
BeatmapInfo beatmap = imported.Beatmaps.First();
|
beatmap.ResetOnlineInfo();
|
||||||
beatmap.Hash = "new_hash";
|
|
||||||
beatmap.ResetOnlineInfo();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// for now, making changes to a beatmap doesn't remove the backlink from the score to the beatmap.
|
// for now, making changes to a beatmap doesn't remove the backlink from the score to the beatmap.
|
||||||
|
Loading…
Reference in New Issue
Block a user