diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-14 13:57:55 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-14 13:57:55 +0200 |
| commit | 667508f25afda611e64ac8423d6ef0108fb51cec (patch) | |
| tree | 06840ad79187fe95f00ef22267ef2434142a865b /cli | |
| parent | 680067ed6154bebcf2c097d407b030b3f786d10c (diff) | |
Simplify FSM by removing hierarchy
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.go b/cli/main.go index 6e12848..a9a1167 100644 --- a/cli/main.go +++ b/cli/main.go @@ -20,7 +20,7 @@ func openBrowser(urlString string) { func logState(oldState string, newState string, data string) { fmt.Printf("State: %s -> State: %s with data %s\n", oldState, newState, data) - if newState == "SERVER_OAUTH_STARTED" { + if newState == "OAuth_Started" { openBrowser(data) } } |
