mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 01:02:56 +08:00
Remove nullable disable
This commit is contained in:
parent
ac1783fa94
commit
b18a5e63b7
@ -1,8 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using Markdig.Syntax;
|
||||
using Markdig.Syntax.Inlines;
|
||||
using osu.Framework.Graphics;
|
||||
@ -62,7 +60,7 @@ namespace osu.Game.Overlays.Comments
|
||||
{
|
||||
}
|
||||
|
||||
private DelayedLoadWrapper wrapper;
|
||||
private DelayedLoadWrapper wrapper = null!;
|
||||
|
||||
protected override Drawable CreateContent(string url) => wrapper = new DelayedLoadWrapper(CreateImageContainer(url));
|
||||
|
||||
@ -104,7 +102,7 @@ namespace osu.Game.Overlays.Comments
|
||||
if (t != null)
|
||||
Size = t.Height > max_height ? new Vector2(max_height / t.Height * t.Width, max_height) : t.Size;
|
||||
|
||||
return t;
|
||||
return t!;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user