瀏覽代碼

Remove extra ToArray call.

Gert Driesen 11 年之前
父節點
當前提交
6a68a5f22b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Renci.SshClient/Renci.SshNet/Security/KeyHostAlgorithm.cs

+ 1 - 1
Renci.SshClient/Renci.SshNet/Security/KeyHostAlgorithm.cs

@@ -62,7 +62,7 @@ namespace Renci.SshNet.Security
         /// </returns>
         public override byte[] Sign(byte[] data)
         {
-            return new SignatureKeyData(this.Name, this.Key.Sign(data)).GetBytes().ToArray();
+            return new SignatureKeyData(this.Name, this.Key.Sign(data)).GetBytes();
         }
 
         /// <summary>