summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-04-17 10:50:34 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-04-18 14:05:19 +0200
commitbffe8ff5c360ffb7d304e93ac97e0cbd78feaa7b (patch)
tree2de4952839f21d61ffb3b554d3770a10f0c908e1 /cmd
parentaac05c4f0ec872ebf6d4568e5590f303cf124568 (diff)
CLI: Fix linter error for old state unused
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cli/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index bbda060..275f147 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -82,7 +82,7 @@ func sendProfile(state *client.Client, data interface{}) {
// If OAuth is started we open the browser with the Auth URL
// If we ask for a profile, we send the profile using command line input
// Note that this has an additional argument, the vpn state which was wrapped into this callback function below.
-func stateCallback(state *client.Client, oldState client.FSMStateID, newState client.FSMStateID, data interface{}) {
+func stateCallback(state *client.Client, _ client.FSMStateID, newState client.FSMStateID, data interface{}) {
if newState == client.StateOAuthStarted {
openBrowser(data)
}