chore: some formattting

This commit is contained in:
Nick Genovese
2022-10-20 12:37:44 -04:00
parent e33b226c6e
commit 2b95b49b74

View File

@@ -508,15 +508,12 @@ namespace PepperDash.Core
private void AuthenticationPromptHandler(object sender, AuthenticationPromptEventArgs e) private void AuthenticationPromptHandler(object sender, AuthenticationPromptEventArgs e)
{ {
foreach ( foreach (var prompt in e.Prompts)
var prompt in if (prompt.Request.IndexOf("Password:", StringComparison.InvariantCultureIgnoreCase) != -1)
e.Prompts.Where(
prompt => prompt.Request.IndexOf("Password:", StringComparison.InvariantCultureIgnoreCase) != -1)
)
prompt.Response = Password; prompt.Response = Password;
} }
private static void HostKeyReceivedHandler(object sender, HostKeyEventArgs e) private void HostKeyReceivedHandler(object sender, HostKeyEventArgs e)
{ {
e.CanTrust = true; e.CanTrust = true;
} }