Fix known non-null variable

This commit is contained in:
Dean Herbert 2021-01-14 16:30:57 +09:00
parent 8a08d3f4ef
commit e3c5a909e4

View File

@ -223,9 +223,7 @@ namespace osu.Game.Overlays.Toolbar
{
if (realmKeyBinding != null)
{
KeyCombination? binding = realmKeyBinding.KeyCombination;
var keyBindingString = binding?.ReadableString();
var keyBindingString = realmKeyBinding.KeyCombination.ReadableString();
if (!string.IsNullOrEmpty(keyBindingString))
keyBindingTooltip.Text = $" ({keyBindingString})";