mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Refactor migration precondition to read better
This commit is contained in:
parent
370135d484
commit
0e0e8c25e8
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user