mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-17 04:37:48 +00:00
refactor(lib): match codebase metadataMu lock pattern in Ready()
This commit is contained in:
@@ -6,6 +6,7 @@ package traefikoidc
|
|||||||
// has been fetched and the authorization endpoint is known.
|
// has been fetched and the authorization endpoint is known.
|
||||||
func (t *TraefikOidc) Ready() bool {
|
func (t *TraefikOidc) Ready() bool {
|
||||||
t.metadataMu.RLock()
|
t.metadataMu.RLock()
|
||||||
defer t.metadataMu.RUnlock()
|
u := t.authURL
|
||||||
return t.authURL != ""
|
t.metadataMu.RUnlock()
|
||||||
|
return u != ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user