More adjustments based on PR feedback

This commit is contained in:
Ryan Richard 2021-04-27 16:54:26 -07:00
parent 263a33cc85
commit 5c62a9d0bd
2 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ type LDAPDialer interface {
// LDAPDialerFunc makes it easy to use a func as an LDAPDialer.
type LDAPDialerFunc func(ctx context.Context, hostAndPort string) (Conn, error)
var _ LDAPDialer = LDAPDialerFunc(func(ctx context.Context, hostAndPort string) (Conn, error) { return nil, nil })
var _ LDAPDialer = LDAPDialerFunc(nil)
func (f LDAPDialerFunc) Dial(ctx context.Context, hostAndPort string) (Conn, error) {
return f(ctx, hostAndPort)