From 49a99e8036823fbb924989331b73359744936015 Mon Sep 17 00:00:00 2001 From: Aaron Son Date: Mon, 13 Apr 2020 12:50:07 -0700 Subject: [PATCH] repofmt. --- go/cmd/dolt/commands/login.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/cmd/dolt/commands/login.go b/go/cmd/dolt/commands/login.go index d57be4b232..c4a87ea87c 100644 --- a/go/cmd/dolt/commands/login.go +++ b/go/cmd/dolt/commands/login.go @@ -98,9 +98,11 @@ func (cmd LoginCmd) Exec(ctx context.Context, commandStr string, args []string, // Specifies behavior of the login. type loginBehavior int + // When logging in with newly minted credentials, they cannot be on the server // yet. So open the browser immediately before checking the server. var openBrowserFirst loginBehavior = 1 + // When logging in with supplied credentials, they may already be associated // with an account on the server. Check first before opening a browser. var checkCredentialsThenOpenBrowser loginBehavior = 2 @@ -156,7 +158,7 @@ func loginWithCreds(ctx context.Context, dEnv *env.DoltEnv, dc creds.DoltCreds, cli.Println("Checking remote server looking for key association.") } - linePrinter := func () func(line string) { + linePrinter := func() func(line string) { prevMsgLen := 0 return func(line string) { prevMsgLen = cli.DeleteAndPrint(prevMsgLen, line)