Skip to content

Commit 6606120

Browse files
committed
Fix: Copilot suggestion
1 parent 0f9f27a commit 6606120

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,7 @@ private Task Connect(string host = null)
606606
// Otherwise, in some cases, incorrect values are taken over.
607607
AddHostToHistory(instance.Host);
608608

609-
// Connect
610609
Connect(sessionInfo);
611-
612610
}, _ =>
613611
{
614612
childWindow.IsOpen = false;

Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,12 @@ private Task Connect(string host = null)
631631

632632
Connect(sessionInfo);
633633
}, _ =>
634-
{
635-
childWindow.IsOpen = false;
636-
ConfigurationManager.Current.IsChildWindowOpen = false;
634+
{
635+
childWindow.IsOpen = false;
636+
ConfigurationManager.Current.IsChildWindowOpen = false;
637637

638-
ConfigurationManager.OnDialogClose();
639-
}, host);
638+
ConfigurationManager.OnDialogClose();
639+
}, host);
640640

641641
childWindow.Title = Strings.Connect;
642642

0 commit comments

Comments
 (0)