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/exports.go | |
| parent | b0e4e454fc94935cf8ee3282a07596ec53268a18 (diff) | |
Golang-ci-lint: Fixes
Diffstat (limited to 'exports/exports.go')
| -rw-r--r-- | exports/exports.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
