From 8742b553052bbccfe616c8e531195768947ee0c5 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 24 Mar 2021 13:12:03 +0300 Subject: [PATCH] auth: fix Init method Signed-off-by: Vasiliy Tolstov --- auth/auth.go | 2 +- auth/noop.go | 3 ++- util/reflect/reflect.go | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) 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