Fix InspectCode warnings

This commit is contained in:
Roman Kapustin
2020-11-21 02:06:20 +03:00
parent 7435416497
commit 1feda1152d
3 changed files with 7 additions and 2 deletions

View File

@ -79,7 +79,7 @@ namespace osu.Desktop
private string getStableInstallPathFromRegistry()
{
using (RegistryKey key = Registry.ClassesRoot.OpenSubKey("osu"))
return key?.OpenSubKey(@"shell\open\command")?.GetValue(string.Empty).ToString()?.Split('"')[1].Replace("osu!.exe", "");
return key?.OpenSubKey(@"shell\open\command")?.GetValue(string.Empty)?.ToString()?.Split('"')[1].Replace("osu!.exe", "");
}
protected override UpdateManager CreateUpdateManager()