mirror of
https://github.com/ppy/osu
synced 2024-12-26 00:32:52 +00:00
Use more local realm reference
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
33f024212f
commit
ec231e0f31
@ -49,7 +49,7 @@ namespace osu.Game.Stores
|
||||
// (ie. if an async import finished very recently).
|
||||
Realm.Realm.Write(realm =>
|
||||
{
|
||||
var managed = Realm.Realm.Find<TModel>(item.ID);
|
||||
var managed = realm.Find<TModel>(item.ID);
|
||||
operation(managed);
|
||||
|
||||
item.Files.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user