autofix: fix unused method receiver (#6808)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot]
2022-03-06 16:37:41 +08:00
committed by GitHub
parent b7372b1f32
commit 09dbbf9a69
11 changed files with 23 additions and 23 deletions

View File

@@ -86,7 +86,7 @@ func (c *Config) sanitizedUserDN(username string) (string, bool) {
return strings.ReplaceAll(c.UserDN, "%s", username), true
}
func (c *Config) sanitizedGroupFilter(group string) (string, bool) {
func (*Config) sanitizedGroupFilter(group string) (string, bool) {
// See http://tools.ietf.org/search/rfc4515
badCharacters := "\x00*\\"
if strings.ContainsAny(group, badCharacters) {
@@ -97,7 +97,7 @@ func (c *Config) sanitizedGroupFilter(group string) (string, bool) {
return group, true
}
func (c *Config) sanitizedGroupDN(groupDn string) (string, bool) {
func (*Config) sanitizedGroupDN(groupDn string) (string, bool) {
// See http://tools.ietf.org/search/rfc4514: "special characters"
badCharacters := "\x00()*\\'\"#+;<>"
if strings.ContainsAny(groupDn, badCharacters) || strings.HasPrefix(groupDn, " ") || strings.HasSuffix(groupDn, " ") {