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 /exports | |
| parent | b0e4e454fc94935cf8ee3282a07596ec53268a18 (diff) | |
Golang-ci-lint: Fixes
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/disco.go | 2 | ||||
| -rw-r--r-- | exports/exports.go | 5 | ||||
| -rw-r--r-- | exports/servers.go | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/exports/disco.go b/exports/disco.go index bd5a663..56918ec 100644 --- a/exports/disco.go +++ b/exports/disco.go @@ -41,7 +41,7 @@ import "C" import ( "unsafe" - "github.com/jwijenbergh/eduvpn-common" + eduvpn "github.com/jwijenbergh/eduvpn-common" "github.com/jwijenbergh/eduvpn-common/internal/types" ) diff --git a/exports/exports.go b/exports/exports.go index 4f0b865..cd02bd1 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -14,11 +14,10 @@ import "C" import ( "encoding/json" - "errors" "fmt" "unsafe" - "github.com/jwijenbergh/eduvpn-common" + eduvpn "github.com/jwijenbergh/eduvpn-common" ) var P_StateCallbacks map[string]C.PythonCB @@ -79,7 +78,7 @@ func GetVPNState(name string) (*eduvpn.VPNState, error) { state, exists := VPNStates[name] if !exists || state == nil { - return nil, errors.New(fmt.Sprintf("State with name %s not found", name)) + return nil, fmt.Errorf("State with name %s not found", name) } return state, nil diff --git a/exports/servers.go b/exports/servers.go index 2dfb14b..b2ae0ee 100644 --- a/exports/servers.go +++ b/exports/servers.go @@ -51,7 +51,7 @@ import "C" import ( "unsafe" - "github.com/jwijenbergh/eduvpn-common" + eduvpn "github.com/jwijenbergh/eduvpn-common" "github.com/jwijenbergh/eduvpn-common/internal/server" ) |
