summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-07 15:41:16 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-07 15:41:16 +0200
commit7d67ce7f6a15970677b7d0b8f4912fe379862515 (patch)
tree62df25f68432308c048ffd8029bbe896f5fa4845 /state.go
parent1865b016d0cca74cd3703db5a3b4217917988dec (diff)
Format: Run gofumpt
Diffstat (limited to 'state.go')
-rw-r--r--state.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/state.go b/state.go
index 8306ca0..46bee4d 100644
--- a/state.go
+++ b/state.go
@@ -2,6 +2,7 @@ package eduvpn
import (
"fmt"
+
"github.com/jwijenbergh/eduvpn-common/internal/config"
"github.com/jwijenbergh/eduvpn-common/internal/discovery"
"github.com/jwijenbergh/eduvpn-common/internal/fsm"
@@ -145,7 +146,6 @@ func (state *VPNState) AskSecureLocation() error {
return nil
}
-
func (state *VPNState) addSecureInternetHomeServer(orgID string) (server.Server, error) {
errorMessage := fmt.Sprintf("failed adding Secure Internet home server with organization ID %s", orgID)
// Get the secure internet URL from discovery
@@ -201,7 +201,6 @@ func (state *VPNState) addInstituteServer(url string) (server.Server, error) {
state.FSM.GoTransition(fsm.CHOSEN_SERVER)
return server, nil
-
}
func (state *VPNState) addCustomServer(url string) (server.Server, error) {
@@ -219,7 +218,6 @@ func (state *VPNState) addCustomServer(url string) (server.Server, error) {
state.FSM.GoTransition(fsm.CHOSEN_SERVER)
return server, nil
-
}
func (state *VPNState) GetConfigInstituteAccess(url string, forceTCP bool) (string, string, error) {
@@ -259,7 +257,6 @@ func (state *VPNState) CancelOAuth() error {
return nil
}
-
func (state *VPNState) GetDiscoOrganizations() (string, error) {
if state.FSM.InState(fsm.DEREGISTERED) {
return "", &types.WrappedErrorMessage{Message: "failed to get the organizations with Discovery", Err: fsm.DeregisteredError{}.CustomError()}