forked from mystiq/dex
ldap.go: drop else on returned if block
This commit is contained in:
parent
19cd9cc65c
commit
6499f5bfd3
1 changed files with 7 additions and 7 deletions
|
@ -188,13 +188,13 @@ func parseScope(s string) (int, bool) {
|
||||||
func (c *ldapConnector) userMatchers() []UserMatcher {
|
func (c *ldapConnector) userMatchers() []UserMatcher {
|
||||||
if len(c.GroupSearch.UserMatchers) > 0 && c.GroupSearch.UserMatchers[0].UserAttr != "" {
|
if len(c.GroupSearch.UserMatchers) > 0 && c.GroupSearch.UserMatchers[0].UserAttr != "" {
|
||||||
return c.GroupSearch.UserMatchers[:]
|
return c.GroupSearch.UserMatchers[:]
|
||||||
} else {
|
}
|
||||||
return []UserMatcher{
|
|
||||||
{
|
return []UserMatcher{
|
||||||
UserAttr: c.GroupSearch.UserAttr,
|
{
|
||||||
GroupAttr: c.GroupSearch.GroupAttr,
|
UserAttr: c.GroupSearch.UserAttr,
|
||||||
},
|
GroupAttr: c.GroupSearch.GroupAttr,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue