From bffe8ff5c360ffb7d304e93ac97e0cbd78feaa7b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 17 Apr 2023 10:50:34 +0200 Subject: CLI: Fix linter error for old state unused --- cmd/cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/cli') 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) } -- cgit v1.2.3