Ver Fonte

Revert "Export ee.errValidation (ee.ErrValidation)"

This reverts commit 59dbab8c79773ca5d879f28cbaf53f3dd4297b9b.
gabrielseibel1 há 2 anos atrás
pai
commit
2d181543b5
1 ficheiros alterados com 2 adições e 4 exclusões
  1. 2 4
      ee/types.go

+ 2 - 4
ee/types.go

@@ -1,8 +1,6 @@
 package ee
 
-import (
-	"errors"
-)
+import "fmt"
 
 const (
 	api_endpoint               = "https://api.accounts.netmaker.io/api/v1/license/validate"
@@ -11,7 +9,7 @@ const (
 	server_id_key              = "nm-server-id"
 )
 
-var ErrValidation = errors.New(license_validation_err_msg)
+var errValidation = fmt.Errorf(license_validation_err_msg)
 
 // LicenseKey - the license key struct representation with associated data
 type LicenseKey struct {