summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-14 13:57:55 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-14 13:57:55 +0200
commit667508f25afda611e64ac8423d6ef0108fb51cec (patch)
tree06840ad79187fe95f00ef22267ef2434142a865b /cli
parent680067ed6154bebcf2c097d407b030b3f786d10c (diff)
Simplify FSM by removing hierarchy
Diffstat (limited to 'cli')
-rw-r--r--cli/main.go2
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)
}
}