mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-17 06:06:39 +00:00
Fix formatting
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
This commit is contained in:
@@ -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{}{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user