1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Property should accept the nullable state.

This commit is contained in:
andy840119 2022-09-10 10:46:40 +08:00
parent 2f91b5c846
commit 1398a7e11e
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ namespace osu.Game.Online.API
public Mod ToMod(Ruleset ruleset) public Mod ToMod(Ruleset ruleset)
{ {
Mod resultMod = ruleset.CreateModFromAcronym(Acronym); Mod? resultMod = ruleset.CreateModFromAcronym(Acronym);
if (resultMod == null) if (resultMod == null)
{ {

View File

@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Settings.Sections
{ {
try try
{ {
SettingsSubsection section = ruleset.CreateSettings(); SettingsSubsection? section = ruleset.CreateSettings();
if (section != null) if (section != null)
Add(section); Add(section);