mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
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:
@@ -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[] { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user