mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use null-conditional operator when checking against UpdateManager
Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
});
|
||||
|
||||
// We should only display the button for UpdateManagers that do update the client
|
||||
if (updateManager != null && updateManager.CanPerformUpdate)
|
||||
if (updateManager?.CanPerformUpdate == true)
|
||||
{
|
||||
Add(new SettingsButton
|
||||
{
|
||||
|
Reference in New Issue
Block a user