Use null-conditional operator when checking against UpdateManager

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Craftplacer
2020-05-08 02:33:12 +02:00
committed by GitHub
parent e6ad28a1cb
commit 7f61f27be1

View File

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