浏览代码

Eliminate extra String.Format.

Gert Driesen 8 年之前
父节点
当前提交
191b704691
共有 1 个文件被更改,包括 1 次插入2 次删除
  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>