mirror of
https://github.com/ppy/osu.git
synced 2026-06-07 04:13:38 +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:
@@ -39,7 +39,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
protected override double TransformDuration => 400;
|
||||
|
||||
protected override Drawable CreateDrawable(IBeatmapInfo model)
|
||||
protected override Drawable CreateDrawable(IBeatmapInfo? model)
|
||||
{
|
||||
var drawable = getDrawableForModel(model);
|
||||
drawable.RelativeSizeAxes = Axes.Both;
|
||||
|
||||
Reference in New Issue
Block a user