Skip to content

Commit

Permalink
Fixed Bug in registry/EmptySets (#275)
Browse files Browse the repository at this point in the history
* Removed Dead Code from registry/EmptySets

- The exists map is always empty so it can't contain anything.

Signed-off-by: nathannaveen <[email protected]>

* Fixed bug

Signed-off-by: nathannaveen <[email protected]>

Signed-off-by: nathannaveen <[email protected]>
  • Loading branch information
nathannaveen authored Dec 8, 2022
1 parent 0fa60ba commit 95942e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/collector/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (r *registry) EmptySets() []signal.Set {
continue
}
ss = append(ss, c.EmptySet())
exists[c.EmptySet().Namespace()] = empty{}
}
return ss
}
Expand Down

0 comments on commit 95942e0

Please sign in to comment.