mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Mark override as null-accepting
`ModelBackedDrawable<T>.CreateDrawable()` is R#-annotated to accept a potentially null model. Apply nullability there too for better reading experience.
This commit is contained in:
parent
354e85a2e1
commit
1f2f522a1e
@ -39,7 +39,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
protected override double TransformDuration => 400;
|
protected override double TransformDuration => 400;
|
||||||
|
|
||||||
protected override Drawable CreateDrawable(IBeatmapInfo model)
|
protected override Drawable CreateDrawable(IBeatmapInfo? model)
|
||||||
{
|
{
|
||||||
var drawable = getDrawableForModel(model);
|
var drawable = getDrawableForModel(model);
|
||||||
drawable.RelativeSizeAxes = Axes.Both;
|
drawable.RelativeSizeAxes = Axes.Both;
|
||||||
|
Loading…
Reference in New Issue
Block a user