Browse Source

Eliminate extra String.Format.

Gert Driesen 8 years ago
parent
commit
191b704691
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Renci.SshNet/ShellStream.cs

+ 1 - 2
src/Renci.SshNet/ShellStream.cs

@@ -658,8 +658,7 @@ namespace Renci.SshNet
         /// </remarks>
         public void WriteLine(string line)
         {
-            var commandText = string.Format("{0}{1}", line, "\r");
-            Write(commandText);
+            Write(line + "\r");
         }
 
         /// <summary>