Fix formatting

Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
This commit is contained in:
faizanahmad055
2026-05-11 22:36:46 +02:00
parent 2d1c05ef5e
commit 90f0768f56
2 changed files with 20 additions and 18 deletions

View File

@@ -58,7 +58,9 @@ var selectedNamespacesCache atomic.Value // always stores map[string]struct{}
// loadSelectedNamespaces returns the current namespace snapshot (never nil).
func loadSelectedNamespaces() map[string]struct{} {
if v := selectedNamespacesCache.Load(); v != nil {
return v.(map[string]struct{})
if m, ok := v.(map[string]struct{}); ok {
return m
}
}
return map[string]struct{}{}
}