summaryrefslogtreecommitdiff
path: root/client/server.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:29:12 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:29:12 +0100
commit0bfb35520d7e138e6219e550187e0b55bc8a29ac (patch)
treea087049edae0ff932bc7a14fef323783b26a2ff1 /client/server.go
parent59e6ccd051452162fab852a25deb4f0f8a9e22b2 (diff)
Formatting: Run gofumpt -w
Diffstat (limited to 'client/server.go')
-rw-r--r--client/server.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/server.go b/client/server.go
index a32b7df..01f965a 100644
--- a/client/server.go
+++ b/client/server.go
@@ -4,10 +4,10 @@ import (
"errors"
"fmt"
- "github.com/eduvpn/eduvpn-common/types"
"github.com/eduvpn/eduvpn-common/internal/oauth"
"github.com/eduvpn/eduvpn-common/internal/server"
"github.com/eduvpn/eduvpn-common/internal/util"
+ "github.com/eduvpn/eduvpn-common/types"
)
// getConfigAuth gets a config with authorization and authentication.
@@ -298,7 +298,7 @@ func (client *Client) AddSecureInternetHomeServer(orgID string) (server.Server,
currentErr := client.Servers.SetSecureInternet(server)
if currentErr != nil {
client.goBackInternal()
- return nil, client.handleError(errorMessage, currentErr)
+ return nil, client.handleError(errorMessage, currentErr)
}
// Server has been chosen for authentication
@@ -526,7 +526,6 @@ func (client *Client) ChangeSecureLocation() error {
return nil
}
-
// RenewSession renews the session for the current VPN server.
// This logs the user back in.
func (client *Client) RenewSession() error {
@@ -539,7 +538,7 @@ func (client *Client) RenewSession() error {
// The server has not been chosen yet, this means that we want to manually renew
if client.FSM.InState(StateNoServer) {
- client.FSM.GoTransition(StateChosenServer)
+ client.FSM.GoTransition(StateChosenServer)
}
server.MarkTokensForRenew(currentServer)
@@ -623,4 +622,3 @@ func (client *Client) SetProfileID(profileID string) error {
base.Profiles.Current = profileID
return nil
}
-