mirror of https://github.com/ppy/osu
Fix "conflicting" variable name
This commit is contained in:
parent
999d625e76
commit
dfbc1f3394
|
@ -209,13 +209,13 @@ void convertOnlineIDs<T>() where T : RealmObject
|
||||||
|
|
||||||
case 9:
|
case 9:
|
||||||
// Pretty pointless to do this as beatmaps aren't really loaded via realm yet, but oh well.
|
// Pretty pointless to do this as beatmaps aren't really loaded via realm yet, but oh well.
|
||||||
string className = getMappedOrOriginalName(typeof(RealmBeatmapMetadata));
|
string metadataClassName = getMappedOrOriginalName(typeof(RealmBeatmapMetadata));
|
||||||
|
|
||||||
// May be coming from a version before `RealmBeatmapMetadata` existed.
|
// May be coming from a version before `RealmBeatmapMetadata` existed.
|
||||||
if (!migration.OldRealm.Schema.TryFindObjectSchema(className, out _))
|
if (!migration.OldRealm.Schema.TryFindObjectSchema(metadataClassName, out _))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var oldMetadata = migration.OldRealm.DynamicApi.All(className);
|
var oldMetadata = migration.OldRealm.DynamicApi.All(metadataClassName);
|
||||||
var newMetadata = migration.NewRealm.All<RealmBeatmapMetadata>();
|
var newMetadata = migration.NewRealm.All<RealmBeatmapMetadata>();
|
||||||
|
|
||||||
int metadataCount = newMetadata.Count();
|
int metadataCount = newMetadata.Count();
|
||||||
|
|
Loading…
Reference in New Issue