1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Remove unnecessary null check

This commit is contained in:
Dean Herbert 2021-10-26 11:57:51 +09:00
parent 94175bfb4a
commit 5d1170aaf4

View File

@ -114,7 +114,7 @@ namespace osu.Game.Audio
Logger.Log($"A {nameof(PreviewTrack)} was created without a containing {nameof(IPreviewTrackOwner)}. An owner should be added for correct behaviour."); Logger.Log($"A {nameof(PreviewTrack)} was created without a containing {nameof(IPreviewTrackOwner)}. An owner should be added for correct behaviour.");
} }
protected override Track GetTrack() => trackManager.Get($"https://b.ppy.sh/preview/{beatmapSetInfo?.OnlineID}.mp3"); protected override Track GetTrack() => trackManager.Get($"https://b.ppy.sh/preview/{beatmapSetInfo.OnlineID}.mp3");
} }
private class PreviewTrackStore : AudioCollectionManager<AdjustableAudioComponent>, ITrackStore private class PreviewTrackStore : AudioCollectionManager<AdjustableAudioComponent>, ITrackStore