From 95942e03caa6efc1616c47e8f1c446c9fb256914 Mon Sep 17 00:00:00 2001 From: nathannaveen <42319948+nathannaveen@users.noreply.github.com> Date: Thu, 8 Dec 2022 16:38:52 -0600 Subject: [PATCH] Fixed Bug in registry/EmptySets (#275) * Removed Dead Code from registry/EmptySets - The exists map is always empty so it can't contain anything. Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> * Fixed bug Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> --- internal/collector/registry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/collector/registry.go b/internal/collector/registry.go index b71e6322f..a41766bdf 100644 --- a/internal/collector/registry.go +++ b/internal/collector/registry.go @@ -98,6 +98,7 @@ func (r *registry) EmptySets() []signal.Set { continue } ss = append(ss, c.EmptySet()) + exists[c.EmptySet().Namespace()] = empty{} } return ss }