Remove weird `.Run(r => r.Write(...))` construction

This commit is contained in:
Bartłomiej Dach 2023-07-01 20:42:34 +02:00
parent b6e9422aa4
commit 746212be7b
No known key found for this signature in database
1 changed files with 5 additions and 7 deletions

View File

@ -432,14 +432,12 @@ public void TestImport_ThenModifyMapWithScore_ThenImport()
await createScoreForBeatmap(realm.Realm, imported.Beatmaps.First());
// 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";
beatmap.ResetOnlineInfo();
});
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.