mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 18:32:56 +08:00
Remove unnecesasry null check on content
This commit is contained in:
parent
18700b4daa
commit
ec12186d63
@ -74,8 +74,6 @@ namespace osu.Game.Skinning
|
||||
cancellationSource?.Cancel();
|
||||
cancellationSource = null;
|
||||
|
||||
if (content != null)
|
||||
{
|
||||
LoadComponentAsync(content, wrapper =>
|
||||
{
|
||||
AddInternal(wrapper);
|
||||
@ -83,9 +81,6 @@ namespace osu.Game.Skinning
|
||||
ComponentsLoaded = true;
|
||||
}, (cancellationSource = new CancellationTokenSource()).Token);
|
||||
}
|
||||
else
|
||||
ComponentsLoaded = true;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ISerialisableDrawableContainer"/>
|
||||
/// <exception cref="NotSupportedException">Thrown when attempting to add an element to a target which is not supported by the current skin.</exception>
|
||||
|
Loading…
Reference in New Issue
Block a user