Prechádzať zdrojové kódy

only show status message if there is one to show

Ken Cochrane 12 rokov pred
rodič
commit
d94a5b7d05
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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 {
 	if err != nil {
 		fmt.Fprintf(stdout, "Error : %s\n", err)
 		fmt.Fprintf(stdout, "Error : %s\n", err)
 	}
 	}
-	fmt.Fprintf(stdout, status)
+	if status != "" {
+		fmt.Fprintf(stdout, status)
+	}
 	return nil
 	return nil
 }
 }