refactor(lib): match codebase metadataMu lock pattern in Ready()

This commit is contained in:
2026-05-19 13:25:13 +01:00
parent ded90e5dc1
commit 21cc2ed747
+3 -2
View File
@@ -6,6 +6,7 @@ package traefikoidc
// has been fetched and the authorization endpoint is known.
func (t *TraefikOidc) Ready() bool {
t.metadataMu.RLock()
defer t.metadataMu.RUnlock()
return t.authURL != ""
u := t.authURL
t.metadataMu.RUnlock()
return u != ""
}