Преглед на файлове

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>