浏览代码

only show status message if there is one to show

Ken Cochrane 12 年之前
父节点
当前提交
d94a5b7d05
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      commands.go

+ 3 - 1
commands.go

@@ -105,7 +105,9 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
 	if err != nil {
 		fmt.Fprintf(stdout, "Error : %s\n", err)
 	}
-	fmt.Fprintf(stdout, status)
+	if status != "" {
+		fmt.Fprintf(stdout, status)
+	}
 	return nil
 }