diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-13 13:44:07 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-13 13:44:07 +0200 |
| commit | badac4c8dec6be7a798e891281221f7830305c88 (patch) | |
| tree | a786fbd59cf9eab7ac8389ced8954859cc433fc4 /client.go | |
| parent | adf59e8c6cdaf050ef9cf09301111e7429ec0c37 (diff) | |
Format: Run gofumpt
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -479,7 +479,7 @@ func (client *Client) AddInstituteServer(url string) (server.Server, error) { // Authorize it loginErr := client.ensureLogin(server) if loginErr != nil { - // Removing is best effort + // Removing is best effort _ = client.RemoveInstituteAccess(url) return nil, &types.WrappedErrorMessage{Level: types.GetErrorLevel(loginErr), Message: errorMessage, Err: loginErr} } @@ -520,7 +520,7 @@ func (client *Client) AddSecureInternetHomeServer(orgID string) (server.Server, locationErr := client.askSecureLocation() if locationErr != nil { - // Removing is best effort + // Removing is best effort _ = client.RemoveSecureInternet() return nil, &types.WrappedErrorMessage{Message: errorMessage, Err: locationErr} } @@ -531,7 +531,7 @@ func (client *Client) AddSecureInternetHomeServer(orgID string) (server.Server, // Authorize it loginErr := client.ensureLogin(server) if loginErr != nil { - // Removing is best effort + // Removing is best effort _ = client.RemoveSecureInternet() return nil, &types.WrappedErrorMessage{Level: types.GetErrorLevel(loginErr), Message: errorMessage, Err: loginErr} } @@ -570,7 +570,7 @@ func (client *Client) AddCustomServer(url string) (server.Server, error) { // Authorize it loginErr := client.ensureLogin(server) if loginErr != nil { - // removing is best effort + // removing is best effort _ = client.RemoveCustomServer(url) return nil, &types.WrappedErrorMessage{Level: types.GetErrorLevel(loginErr), Message: errorMessage, Err: loginErr} } @@ -679,7 +679,6 @@ func (client *Client) GetConfigSecureInternet( return config, configType, nil } - // GetConfigCustomServer gets a configuration for a Custom Server. // It ensures that the Custom Server exists by creating or using an existing one with the url. // `preferTCP` indicates that the client wants to use TCP (through OpenVPN) to establish the VPN tunnel. |
