diff --git a/cli/cmd/login.go b/cli/cmd/login.go index c6909d96dd0620cdd7c4a083aaf170841f9d83cc..ac210be646fd12778915ccf1b3429dcae938daa0 100644 --- a/cli/cmd/login.go +++ b/cli/cmd/login.go @@ -59,10 +59,7 @@ var loginCmd = &cobra.Command{ // log out to remove active session in case an user is already logged in if userToken != "" { - _, err := api.Logout(createContextWithAuthorization(), viper.GetString("controllerAPIEndpoint"), nbUserName) - if err != nil { - pterm.Error.Println("error logging out active user", err) - } + _, _ = api.Logout(createContextWithAuthorization(), viper.GetString("controllerAPIEndpoint"), nbUserName) } // TODO: maybe add credentials in context instead of context.TODO()