mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
🥅 Don't lint errcheck for conn.Close() of LDAP connection.
This commit is contained in:
parent
0e289d024f
commit
95c638274b
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -80,7 +80,7 @@ media_store/
|
|||
# golang workspaces
|
||||
go.work*
|
||||
|
||||
__debug_bin
|
||||
__debug_bin*
|
||||
|
||||
cmd/dendrite-monolith-server/dendrite-monolith-server
|
||||
build
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ func (t *LoginTypePassword) authenticateLdap(username, password string) (bool, *
|
|||
JSON: spec.Unknown("unable to connect to ldap: " + err.Error()),
|
||||
}
|
||||
}
|
||||
// nolint: errcheck
|
||||
defer conn.Close()
|
||||
|
||||
if t.Config.Ldap.AdminBindEnabled {
|
||||
|
|
|
|||
Loading…
Reference in a new issue