mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Refactor migration precondition to read better
This commit is contained in:
@ -63,7 +63,7 @@ namespace osu.Game.Database
|
||||
using (var transaction = realm.BeginWrite())
|
||||
{
|
||||
// only migrate data if the realm database is empty.
|
||||
if (!realm.All<SkinInfo>().Any(s => !s.Protected))
|
||||
if (realm.All<SkinInfo>().All(s => s.Protected))
|
||||
{
|
||||
foreach (var skin in existingSkins)
|
||||
{
|
||||
|
Reference in New Issue
Block a user