1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 23:23:04 +08:00

Freshen some comments

This commit is contained in:
Dean Herbert 2022-01-19 10:20:43 +09:00
parent 64a023665e
commit 04e9ffa966

View File

@ -84,7 +84,7 @@ namespace osu.Game.Database
} }
// only migrate data if the realm database is empty. // only migrate data if the realm database is empty.
// note that this cannot be written as: `realm.All<BeatmapInfo>().All(s => s.Protected)`, because realm does not support `.All()`. // note that this cannot be written as: `realm.All<BeatmapSetInfo>().All(s => s.Protected)`, because realm does not support `.All()`.
if (realm.All<BeatmapSetInfo>().Any(s => !s.Protected)) if (realm.All<BeatmapSetInfo>().Any(s => !s.Protected))
{ {
Logger.Log("Skipping migration as realm already has beatmaps loaded", LoggingTarget.Database); Logger.Log("Skipping migration as realm already has beatmaps loaded", LoggingTarget.Database);
@ -215,7 +215,6 @@ namespace osu.Game.Database
} }
// only migrate data if the realm database is empty. // only migrate data if the realm database is empty.
// note that this cannot be written as: `realm.All<ScoreInfo>().All(s => s.Protected)`, because realm does not support `.All()`.
if (realm.All<ScoreInfo>().Any()) if (realm.All<ScoreInfo>().Any())
{ {
Logger.Log("Skipping migration as realm already has scores loaded", LoggingTarget.Database); Logger.Log("Skipping migration as realm already has scores loaded", LoggingTarget.Database);