1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove unused argument.

This commit is contained in:
David Calavera 2013-07-27 10:17:57 -07:00
parent d4f7039793
commit 88b6ea993d

View file

@ -314,7 +314,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
email string
)
var promptDefault = func(stdout io.Writer, prompt string, configDefault string) {
var promptDefault = func(prompt string, configDefault string) {
if configDefault == "" {
fmt.Fprintf(cli.out, "%s: ", prompt)
} else {
@ -328,7 +328,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
}
if *flUsername == "" {
promptDefault(cli.out, "Username", authconfig.Username)
promptDefault("Username", authconfig.Username)
username = readAndEchoString(cli.in, cli.out)
if username == "" {
username = authconfig.Username
@ -348,7 +348,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
}
if *flEmail == "" {
promptDefault(cli.out, "Email", authconfig.Email)
promptDefault("Email", authconfig.Email)
email = readAndEchoString(cli.in, cli.out)
if email == "" {
email = authconfig.Email