Merge pull request #16177 from HuKeping/leading-tab
Use TrimSpace to instead of Trim
This commit is contained in:
commit
104d30f946
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
|
|||
if username == "" {
|
||||
promptDefault("Username", authconfig.Username)
|
||||
username = readInput(cli.in, cli.out)
|
||||
username = strings.Trim(username, " ")
|
||||
username = strings.TrimSpace(username)
|
||||
if username == "" {
|
||||
username = authconfig.Username
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue