mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 00:02:54 +08:00
Remove unnecessary exception/check
This commit is contained in:
parent
63226f7def
commit
a86c0014fe
@ -30,16 +30,7 @@ namespace osu.Game.Overlays
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private BeatmapManager beatmaps { get; set; }
|
private BeatmapManager beatmaps { get; set; }
|
||||||
|
|
||||||
public IBindableList<BeatmapSetInfo> BeatmapSets
|
public IBindableList<BeatmapSetInfo> BeatmapSets => beatmapSets;
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (LoadState < LoadState.Ready)
|
|
||||||
throw new InvalidOperationException($"{nameof(BeatmapSets)} should not be accessed before the music controller is loaded.");
|
|
||||||
|
|
||||||
return beatmapSets;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Point in time after which the current track will be restarted on triggering a "previous track" action.
|
/// Point in time after which the current track will be restarted on triggering a "previous track" action.
|
||||||
|
Loading…
Reference in New Issue
Block a user