Skip to content

Commit

Permalink
add explicit cases
Browse files Browse the repository at this point in the history
  • Loading branch information
getinnocuous committed Apr 5, 2024
1 parent 6023233 commit e383744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ func (m authenticateModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case WaitingForConfirmation:
m.status = WaitingForConfirmation
return m, awaitToken(m.config, m.ctx, m.deviceCode)
default: {
case Authenticated:
case ErrorAuthenticating: {
return m, nil
}
}
Expand Down

0 comments on commit e383744

Please sign in to comment.