1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 12:23:21 +08:00

Remove nullable on RealmBackedResourceStore realm parameter

This commit is contained in:
Dean Herbert 2022-04-04 20:27:03 +09:00
parent 6afed5e865
commit 09e15f5496

View File

@ -24,7 +24,7 @@ namespace osu.Game.Skinning
private readonly Live<T> liveSource;
private readonly IDisposable? realmSubscription;
public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyingStore, RealmAccess? realm)
public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyingStore, RealmAccess realm)
: base(underlyingStore)
{
liveSource = source;
@ -32,7 +32,7 @@ namespace osu.Game.Skinning
invalidateCache();
Debug.Assert(fileToStoragePathMapping != null);
realmSubscription = realm?.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == source.ID), skinChanged);
realmSubscription = realm.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == source.ID), skinChanged);
}
protected override void Dispose(bool disposing)