summaryrefslogtreecommitdiff
path: root/cmd/cli/main.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-13 13:44:07 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-13 13:44:07 +0200
commitbadac4c8dec6be7a798e891281221f7830305c88 (patch)
treea786fbd59cf9eab7ac8389ced8954859cc433fc4 /cmd/cli/main.go
parentadf59e8c6cdaf050ef9cf09301111e7429ec0c37 (diff)
Format: Run gofumpt
Diffstat (limited to 'cmd/cli/main.go')
-rw-r--r--cmd/cli/main.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index dbded2d..68ebe8d 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -98,22 +98,22 @@ func getConfig(state *eduvpn.Client, url string, serverType ServerTypes) (string
}
// Prefer TCP is set to False
if serverType == ServerTypeInstituteAccess {
- _, addErr := state.AddInstituteServer(url)
- if addErr != nil {
- return "", "", addErr
- }
+ _, addErr := state.AddInstituteServer(url)
+ if addErr != nil {
+ return "", "", addErr
+ }
return state.GetConfigInstituteAccess(url, false)
} else if serverType == ServerTypeCustom {
- _, addErr := state.AddCustomServer(url)
- if addErr != nil {
- return "", "", addErr
- }
+ _, addErr := state.AddCustomServer(url)
+ if addErr != nil {
+ return "", "", addErr
+ }
return state.GetConfigCustomServer(url, false)
}
- _, addErr := state.AddSecureInternetHomeServer(url)
- if addErr != nil {
- return "", "", addErr
- }
+ _, addErr := state.AddSecureInternetHomeServer(url)
+ if addErr != nil {
+ return "", "", addErr
+ }
return state.GetConfigSecureInternet(url, false)
}