Skip to content

Commit

Permalink
Hotfix: Remove accidental login check on login command
Browse files Browse the repository at this point in the history
  • Loading branch information
Morishiri committed Dec 8, 2020
1 parent 9f31554 commit f41d1ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/account_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ Running this command as not logged in user will prompt you to open URL and use t
Running this command as logged in user will fail, in cae you want to relogin then you need to log out first`,
Run: func(cmd *cobra.Command, args []string) {
if !token.IsTokenSaved() {
log.Fatal().Msg("Not logged in, nothing to do")
}

if token.IsTokenSaved() {
log.Fatal().Msg(fmt.Sprintf("Already logged in, please use `%s account logout` first to re-login", os.Args[0]))
os.Exit(1)
Expand Down

0 comments on commit f41d1ac

Please sign in to comment.