We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6917883 + 04c9214 commit 760fd5aCopy full SHA for 760fd5a
src/ViewModels/EditRemote.cs
@@ -93,11 +93,8 @@ public static ValidationResult ValidateRemoteURL(string url, ValidationContext c
93
94
public static ValidationResult ValidateSSHKey(string sshkey, ValidationContext ctx)
95
{
96
- if (ctx.ObjectInstance is EditRemote edit&& edit.UseSSH)
+ if (ctx.ObjectInstance is EditRemote {_useSSH:true}&& !string.IsNullOrEmpty(sshkey))
97
98
- if (string.IsNullOrEmpty(sshkey))
99
- return new ValidationResult("SSH private key is required");
100
-
101
if (!File.Exists(sshkey))
102
return new ValidationResult("Given SSH private key can NOT be found!");
103
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments