auth: fix Init method

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-03-24 13:12:03 +03:00
parent 4a64ee72f7
commit 8742b55305
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -74,7 +74,6 @@ func IsEmpty(v reflect.Value) bool {
}
}
default:
fmt.Printf("%#+v\n", v)
return false
}
return true