1
0
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:
Bartłomiej Dach 2023-06-24 15:07:04 +02:00
parent 354e85a2e1
commit 1f2f522a1e
No known key found for this signature in database

View File

@ -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;