mirror of
https://github.com/ppy/osu
synced 2025-03-05 19:11:52 +00:00
Property should accept the nullable state.
This commit is contained in:
parent
2f91b5c846
commit
1398a7e11e
@ -48,7 +48,7 @@ namespace osu.Game.Online.API
|
||||
|
||||
public Mod ToMod(Ruleset ruleset)
|
||||
{
|
||||
Mod resultMod = ruleset.CreateModFromAcronym(Acronym);
|
||||
Mod? resultMod = ruleset.CreateModFromAcronym(Acronym);
|
||||
|
||||
if (resultMod == null)
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
||||
{
|
||||
try
|
||||
{
|
||||
SettingsSubsection section = ruleset.CreateSettings();
|
||||
SettingsSubsection? section = ruleset.CreateSettings();
|
||||
|
||||
if (section != null)
|
||||
Add(section);
|
||||
|
Loading…
Reference in New Issue
Block a user