diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-20 13:21:34 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-20 13:21:34 +0200 |
| commit | 25d2143a627531fc0475d639c1e8f657ccafa630 (patch) | |
| tree | 3b5b69b64f5f6879810842464056543e315c64a4 /internal/server | |
| parent | b0e4e454fc94935cf8ee3282a07596ec53268a18 (diff) | |
Golang-ci-lint: Fixes
Diffstat (limited to 'internal/server')
| -rw-r--r-- | internal/server/api.go | 3 | ||||
| -rw-r--r-- | internal/server/common.go | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/internal/server/api.go b/internal/server/api.go index b06b25c..76e3c72 100644 --- a/internal/server/api.go +++ b/internal/server/api.go @@ -199,7 +199,6 @@ func APIConnectOpenVPN(server Server, profile_id string) (string, time.Time, err } // This needs no further return value as it's best effort -// FIXME: doAuth should not be needed here func APIDisconnect(server Server) { - apiAuthorized(server, http.MethodPost, "/disconnect", &httpw.HTTPOptionalParams{Timeout: 1}) + _, _, _ = apiAuthorized(server, http.MethodPost, "/disconnect", &httpw.HTTPOptionalParams{Timeout: 1}) } diff --git a/internal/server/common.go b/internal/server/common.go index 9c941cf..f4f9a42 100644 --- a/internal/server/common.go +++ b/internal/server/common.go @@ -475,9 +475,7 @@ func (e *ServerGetCurrentProfileNotFoundError) Error() string { type ServerGetConfigForceTCPError struct{} func (e *ServerGetConfigForceTCPError) Error() string { - return fmt.Sprintf( - "failed to get config, force TCP is on but the server does not support OpenVPN", - ) + return "failed to get config, force TCP is on but the server does not support OpenVPN" } type ServerEnsureServerEmptyURLError struct{} |
