aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-10-31 20:05:54 +0800
committerGitHub <noreply@github.com>2024-10-31 12:05:54 +0000
commit5e6523aa57771f672dc0e8fb06431d4032308f23 (patch)
tree7fe31e46fc08922942c5141f8f93262b0b418607 /services
parent9914c9ab08d72434ea55e4c53a1b4528fdadc181 (diff)
downloadgitea-5e6523aa57771f672dc0e8fb06431d4032308f23.tar.gz
gitea-5e6523aa57771f672dc0e8fb06431d4032308f23.zip
Update go dependencies (#32389)
Diffstat (limited to 'services')
-rw-r--r--services/auth/source/ldap/source_search.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go
index 2a61386ae1..b20c90e791 100644
--- a/services/auth/source/ldap/source_search.go
+++ b/services/auth/source/ldap/source_search.go
@@ -117,10 +117,10 @@ func dial(source *Source) (*ldap.Conn, error) {
}
if source.SecurityProtocol == SecurityProtocolLDAPS {
- return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig)
+ return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig) //nolint:staticcheck
}
- conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)))
+ conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port))) //nolint:staticcheck
if err != nil {
return nil, fmt.Errorf("error during Dial: %w", err)
}