diff --git a/auth/auth.go b/auth/auth.go index 52f03937..50bb6c02 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -30,7 +30,7 @@ var ( // Auth provides authentication and authorization type Auth interface { // Init the auth - Init(opts ...Option) + Init(opts ...Option) error // Options set for auth Options() Options // Generate a new account diff --git a/auth/noop.go b/auth/noop.go index 87399126..8c86fc73 100644 --- a/auth/noop.go +++ b/auth/noop.go @@ -14,10 +14,11 @@ func (n *noopAuth) String() string { } // Init the auth -func (n *noopAuth) Init(opts ...Option) { +func (n *noopAuth) Init(opts ...Option) error { for _, o := range opts { o(&n.opts) } + return nil } // Options set for auth diff --git a/util/reflect/reflect.go b/util/reflect/reflect.go index 8b7ed526..06cf1087 100644 --- a/util/reflect/reflect.go +++ b/util/reflect/reflect.go @@ -74,7 +74,6 @@ func IsEmpty(v reflect.Value) bool { } } default: - fmt.Printf("%#+v\n", v) return false } return true