From 6499f5bfd368cda9b67efa56639513311d5d5fdd Mon Sep 17 00:00:00 2001 From: batara666 <67689090+batara666@users.noreply.github.com> Date: Mon, 27 Jul 2020 22:27:55 +0700 Subject: [PATCH] ldap.go: drop else on returned if block --- connector/ldap/ldap.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/connector/ldap/ldap.go b/connector/ldap/ldap.go index 53f9062f..2e12a4c9 100644 --- a/connector/ldap/ldap.go +++ b/connector/ldap/ldap.go @@ -188,13 +188,13 @@ func parseScope(s string) (int, bool) { func (c *ldapConnector) userMatchers() []UserMatcher { if len(c.GroupSearch.UserMatchers) > 0 && c.GroupSearch.UserMatchers[0].UserAttr != "" { return c.GroupSearch.UserMatchers[:] - } else { - return []UserMatcher{ - { - UserAttr: c.GroupSearch.UserAttr, - GroupAttr: c.GroupSearch.GroupAttr, - }, - } + } + + return []UserMatcher{ + { + UserAttr: c.GroupSearch.UserAttr, + GroupAttr: c.GroupSearch.GroupAttr, + }, } }