remove unnecessary mutex lock

This commit is contained in:
Rijul-A 2026-05-10 10:18:16 +00:00
parent f2216f9f52
commit db3d33dae1
No known key found for this signature in database
GPG key ID: A723947698B3680C

View file

@ -3,8 +3,6 @@ package caddytls
// IsManaging returns true if the name is being managed by this TLS app.
// This is for testing purposes only.
func (t *TLS) IsManaging(name string) bool {
t.serverNamesMu.Lock()
defer t.serverNamesMu.Unlock()
_, ok := t.managing[name]
return ok
}