Update PuttySessionsRegistryProvider.cs

remove unreachable code
- no need to test for null, PuttySessionsKey is a const with a value set on instantiation
This commit is contained in:
BlueBlock
2023-03-16 14:35:39 -04:00
parent 651b18a8b3
commit fb50cdc058

View File

@@ -24,8 +24,6 @@ namespace mRemoteNG.Config.Putty
public override string[] GetSessionNames(bool raw = false)
{
if (PuttySessionsKey == null) return null;
var sessionsKey = Registry.CurrentUser.OpenSubKey(PuttySessionsKey);
if (sessionsKey == null) return new string[] { };